letsencrypt certbot损坏

时间:2020-03-09 23:20:06

标签: certbot

CentOS 7 apache ver 2.4 php 7.1

我的certbot已损坏,我无法修复它。

[root@sw4u ~]# certbot renew
Traceback (most recent call last):
  File "/bin/certbot", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 3011, in <module>
    parse_requirements(__requires__), Environment()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 626, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: cffi>=1.8,!=1.11.3
[root@sw4u ~]# certbot
Traceback (most recent call last):
  File "/bin/certbot", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 3011, in <module>
    parse_requirements(__requires__), Environment()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 626, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: cffi>=1.8,!=1.11.3

yum install python2-acme 百胜安装phtyon2-certbot-*

安装Almost certbot,python2和python3。 但是我不能解决这个问题。

1 个答案:

答案 0 :(得分:0)

您安装了cffi吗?

python3 -m venv env
source env/bin/activate
pip3 install cffi