2017-02-07 92 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 
相關問題