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

Posted 神神的蜗牛

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Could not find a version that satisfies the requirement certbot 升级失败相关的知识,希望对你有一定的参考价值。

certbot 升级出现失败

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 

也可以换其他源试试

以上是关于Could not find a version that satisfies the requirement certbot 升级失败的主要内容,如果未能解决你的问题,请参考以下文章

pandas包的安装和Could not find a version that satisfies|9

Could not find a version that satisfies the requirement 的解决方案

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

anaconda安装Opencv报错:Could NOT find PythonLibs: Found unsuitable version "2.7.6",

python pip 安装一些包找不到的问题 Could not find a version that satisfies....

pip ERROR: Could not find a version that satisfies the requirement loguru (from versions: none)