安装tb-lightly失败

ERROR: Could not find a version that satisfies the requirement tb-nightly (from torchreid) (from versions: none)
ERROR: No matching distribution found for tb-nightly

说明,我们的pip源中没有对应的“tb-nightly”依赖包。

查看pip配置

 python -m pip config list

 显示使用的是清华源:

global.index-url='https://pypi.tuna.tsinghua.edu.cn/simple'

更换为阿里源:

1)临时更换为阿里源(推荐这种)

python -m pip install tb-nightly -i https://mirrors.aliyun.com/pypi/simple

2)换的全局源

python -m pip config set global.index-url https://mirrors.aliyun.com/pypi/simple

再次查看pip配置:

python -m pip config list
# global.index-url='https://mirrors.aliyun.com/pypi/simple'

再次安装tb-nightly就可以了

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐