I need to install a package from PyPi straight within my script. Maybe there\'s some module or distutils (distribute, pip etc.) featur
distutils
distribute
pip
This should work:
import subprocess def install(name): subprocess.call(['pip', 'install', name])