无法从远程仓库安装 python 包

Unable to install python packages from remote repo

我正在尝试通过以下方式从 artifactory 下载依赖项

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 pip.Also https://artifactory.company.com/artifactory/api/pypi/pypi-repos 是代理远程仓库的虚拟仓库

您可以在命令中指定索引并从文件中删除:

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

编辑

错误来自索引 URL 本身。