2017-02-07 36 views
0

我使用pip install git+http://example.com/some-folder/A.git如何从具有dependency_links的Git仓库安装指向另一个仓库仓库

项目A的setup.py

install_requires=['B==0.1.0'], 
# Dependencies 
dependency_links=[ 
    'http://example.com/some-folder/[email protected]', 
] 

输出是:

Could not find a version that satisfies the requirement B==0.1.0 (from A==0.3.0) (from versions:) 

No matching distribution found for B==0.1.0 (from A==0.3.0) 

我该如何解决这个问题?

回答

0

默认情况下Pip忽略dependency_links。要更改此选项,您需要指定--process-dependency-links选项:

pip install --process-dependency-links git+http://example.com/some-folder/A.git 
相关问题