安装tb-lightly失败

安装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'

更换为阿里源:

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就可以了

你可能感兴趣的:(linux)