certbot - 让加密证书机器人坏了
问题描述
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。但我无法解决这个问题。
解决方案
你安装了cffi
吗?
python3 -m venv env
source env/bin/activate
pip3 install cffi
推荐阅读
- vue.js - 使用 vue.js for 循环渲染并跳到下一列
- redux - RXJS 一个接一个地进行可观察的调度(不是 concat)
- python - 如何在现有 Excel 工作表下方写入数据框,而不会丢失数据透视表工作表中的 excel 切片器?
- javascript - Javascript:如何从断点数组呈现以前的断点
- java - java.lang.IllegalStateException:无法加载驱动程序类:com.microsoft.sqlserver.jdbc.SQLServerDriver
- android - 将Android手机输出的Native流摄像头反应到RTSP
- codeigniter-2 - 在 Codeigniter 版本 2.26 中使用 AWS SES 服务发送电子邮件
- c++ - 如何使用递归打印在 0/1 背包问题中选择的元素
- reactjs - 在 React Native 应用程序上查看不同类型的文件
- woocommerce - 通过 CSV 导入 Woocommerce 产品?它是否称为产品更新挂钩?