Could not find a version that satisfies the requirement certbot 升级失败

certbot 升级出现失败

Could not find a version that satisfies the requirement certbot 升级失败_第1张图片

Collecting certbot==0.35.1 (from -r /tmp/tmp.YlDqFtlAG3/letsencrypt-auto-requirements.txt (line 204))
  Could not find a version that satisfies the requirement certbot==0.35.1 (from -r /tmp/tmp.YlDqFtlAG3/letsencrypt-auto-requirements.txt (line 204)) (from versions: 0.6.0, 0.7.0, 0.8.0, 0.8.1, 0.9.0, 0.9.1, 0.9.2, 0.9.3, 0.10.0, 0.10.1, 0.10.2, 0.11.0, 0.11.1, 0.12.0, 0.13.0, 0.14.0, 0.14.1, 0.14.2, 0.15.0, 0.16.0, 0.17.0, 0.18.0, 0.18.1, 0.18.2, 0.19.0, 0.20.0, 0.21.0, 0.21.1, 0.22.0, 0.22.1, 0.22.2, 0.23.0, 0.24.0, 0.25.0, 0.25.1, 0.26.0, 0.26.1, 0.27.0, 0.27.1, 0.28.0, 0.29.0, 0.29.1, 0.30.0, 0.30.1, 0.30.2, 0.31.0, 0.32.0, 0.33.0, 0.33.1, 0.34.0, 0.34.1, 0.34.2)
No matching distribution found for certbot==0.35.1 (from -r /tmp/tmp.YlDqFtlAG3/letsencrypt-auto-requirements.txt (line 204))

pip 源一直使用豆瓣的,

mkdir ~/.pip
cat > ~/.pip/pip.conf <<EOF
[global]
index-url = https://pypi.doubanio.com/simple/

[install]
trusted-host=pypi.doubanio.com
EOF

以前没有遇到问题,这次看错误提示应该是豆瓣库中还没有更新certbot 到 0.35.1版本
我直接去掉 pip.conf 即可正常更新了

mv ~/.pip/pip.conf ~/.pip/pip.conf.bak 

也可以换其他源试试

你可能感兴趣的:(linux)