我试图以fllowing方式从神器中下载依赖
requirements.txt
--index-url https://artifactory.company.com/artifactory/api/pypi/pypi-repos
django-rss-plugin==0.0.9
nltk==3.0.1
然后运行
pip install -r requirements.txt
这会导致以下错误
Collecting django-rss-plugin==0.0.9 (from -r requirements.txt (line 3))
Could not find a version that satisfies the requirement django-rss-plugin==0.0.9 (from -r requirements.txt (line 3)) (from versions: )
No matching distribution found for django-rss-plugin==0.0.9 (from -r requirements.txt (line 3))
任何依赖都是如此。我使用版本9.0.1 for pip.Also https://artifactory.company.com/artifactory/api/pypi/pypi-repos是代理远程仓库的虚拟存储库
答案 0 :(得分:0)
您可以在命令中指定索引并从文件中删除:
pip install -r requirement.txt -i https://artifactory.company.com/artifactory/api/pypi/pypi-repos
文件:
django-rss-plugin==0.0.9
nltk==3.0.1
修改强>
错误来自索引网址。