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
f
You can launch pip install %s"%keyring in the except part to do this but I don't recommend it. The correct way is to package your application using distutils so that when it's installed, dependencies will be pulled in.
pip install %s"%keyring