I\'m trying to create a generic python script for starting up a python app and I would like to install any dependent python modules if they are missing from the target system.
You can use the subprocess module:
import subprocess subprocess.call(['python', 'setup.py', 'install'])