首页 > 解决方案 > 让加密证书机器人坏了

问题描述

CentOS 7 Apache 版本 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

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

安装几乎 certbot、python2 和 python3。但我无法解决这个问题。

标签: certbot

解决方案


你安装了cffi吗?

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

推荐阅读