(name)
Attempt to __import__ the specified package/module, returning
    True when succeeding, otherwise False
Attempt to __import__ the specified package/module, returning
    True when succeeding, otherwise False
Attempt to __import__ the specified package / module returning True when succeeding otherwise False
def can_import(name):
    """Attempt to __import__ the specified package/module, returning
    True when succeeding, otherwise False"""
    try:
        __import__(name)
        return True
    except ImportError:
        return False
def can_import ( name ) : try : __import__ ( name ) return True except ImportError : return False