Easiest way to automatically download required modules in Python?

后端 未结 2 1177
清酒与你
清酒与你 2020-12-25 13:13

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

相关标签:
2条回答
  • 2020-12-25 13:14

    See the setuptools docs on how to declare your dependencies -- this will allow easy_install to find, download and install all of them (and transitive closure thereof) if everything's available in PyPi, or otherwise if you specify the dependencies' URLs.

    0 讨论(0)
  • 2020-12-25 13:17

    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).

    0 讨论(0)
提交回复
热议问题