[Tutor] Installing modules via setuptools in a script

Thorsten Kampe thorsten at thorstenkampe.de
Sun Nov 18 07:03:56 CET 2007


Hi,

can anyone give me a short code snippet how to install a missing 
module via setuptools (assuming setuptools is already installed)?!

Something like this:

try:
    import missing_module
except import_error
    import setuptools
    setuptools.whatever.install(missing_module)

Thorsten



More information about the Tutor mailing list