KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I want to check if a module exists, if it doesn't I want to install it. How should I do this? So far I have this code which correctly prints f if the module doesn't exist. try: import keyring except ImportError: print 'f'
Tags (comma-separated)
Save Edits
Cancel