pip install dependency links

后端 未结 4 1944
花落未央
花落未央 2020-11-29 08:25

I am using python version 2.7 and pip version is 1.5.6.

I want to install extra libraries from url like a git repo on setup.py is being in

4条回答
  •  借酒劲吻你
    2020-11-29 09:14

    The --process-dependency-links option to enable dependency_links was removed in Pip 19.0.

    Instead, you can use a PEP 508 URL to specify your dependency, which is supported since Pip 18.1. Here's an example excerpt from setup.py:

    install_requires=[
        "numpy",
        "package1 @ git+https://github.com/user1/package1",
        "package2 @ git+https://github.com/user2/package2@branch1",
    ],
    

    Note that Pip does not support installing packages with such dependencies from PyPI and in the future you will not be able to upload them to PyPI (see news entry for Pip 18.1).

提交回复
热议问题