Easiest way to automatically download required modules in Python?

user248237 picture user248237 · Apr 14, 2010 · Viewed 18.9k times · Source

I would like to release a python module I wrote which depends on several packages. What's the easiest way to make it so these packages are programmatically downloaded just in case they are not available on the system that's being run? Most of these modules should be available by easy_install or pip or something like that. I simply want to avoid having the user install each module separately.

thanks.

Answer

gotgenes picture gotgenes · Apr 14, 2010

pip uses requirements files, which have a very straightforward format.

For more Python packaging tooling recommendations, see the latest from the Python Packaging Authority (PyPA).