Installing python module within code

I need to install a package from PyPi straight within my script.
Maybe there’s some module or distutils (distribute, pip etc.) feature which allows me to just execute something like pypi.install('requests') and requests will be installed into my virtualenv.

11 Answers
11

Leave a Comment