我正在尝试在具有不同
requirements.txt
和不同 global.index
的计算机上安装来自 search.index
的软件包。我正在使用 --index-url
选项,但出现错误。
$ pip3 install --index-url https://pypi.org/ -r requirements.txt
Looking in indexes: https://pypi.org/
ERROR: Could not find a version that satisfies the requirement annotated-types==0.5.0 (from -r requirements.txt (line 1)) (from versions: none)
ERROR: No matching distribution found for annotated-types==0.5.0 (from -r requirements.txt (line 1))
我有Python
3.8
,但我更新到3.11
以检查是否存在版本不兼容,但我得到了同样的错误。我应该使用不同的 URL 吗?我尝试了 https://pypi.org/projects/ 和 projects
最后但在下一个包中失败了。
pip3 的正确索引网址是 https://files.pythonhosted.org - 它基本上托管 pypi 上的所有内容