letscrypt certbot损坏

问题描述 投票:0回答:1

CentOS 7apache ver 2.4php 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。但是我无法解决这个问题。

certbot
1个回答
0
投票
您是否安装了cffi

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

© www.soinside.com 2019 - 2024. All rights reserved.