def requirement_available(requirement):
 try:
  util.activate(requirement)
 except errors.DependencyError:
  return False
 return True

def requirement_available ( requirement ) : try : util . activate ( requirement ) except errors . DependencyError : return False return True
checks if requirement can be imported .