PyPI 的正确索引 URL 是什么?

问题描述 投票:0回答:1

我正在尝试在具有不同

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
最后但在下一个包中失败了。

python pip windows-subsystem-for-linux pypi
1个回答
0
投票

pip3 的正确索引网址是 https://files.pythonhosted.org - 它基本上托管 pypi 上的所有内容

© www.soinside.com 2019 - 2024. All rights reserved.