ImportError: 'pyOpenSSL' module missing required functionality. Try upgrading to v0.14 or newer.

前端之家收集整理的这篇文章主要介绍了ImportError: 'pyOpenSSL' module missing required functionality. Try upgrading to v0.14 or newer.前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

CentOS7 安装Certbot 报错

执行 certbot certonly 报错如下:

ImportError: 'pyOpenSSL' module missing required functionality. Try upgrading to v0.14 or newer.

网上的方法如果你去测试可能会发现pip show pyOpenSSL 的版本是 17.x.x,这个时候,先删除所有的yum remove certbot && pip uninstall pyOpenSSL,再重新安装如下依赖:

yum install -y python-devel
yum install -y openssl-devel

(以上两句是关键,然后再重新安装certbot)

再次执行certbot certonly会出现如下报错:

[root@f2 ~]# certbot certonly
Traceback (most recent call last): File "/usr/bin/certbot",line 9,in <module> load_entry_point('certbot==0.19.0','console_scripts','certbot')() File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py",line 570,in load_entry_point return get_distribution(dist).load_entry_point(group,name) File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py",line 2751,in load_entry_point return ep.load() File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py",line 2405,in load return self.resolve() File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py",line 2411,in resolve module = __import__(self.module_name,fromlist=['__name__'],level=0) File "/usr/lib/python2.7/site-packages/certbot/main.py",line 19,in <module> from certbot import client File "/usr/lib/python2.7/site-packages/certbot/client.py",line 11,in <module> from acme import client as acme_client File "/usr/lib/python2.7/site-packages/acme/client.py",line 34,in <module> urllib3.contrib.pyopenssl.inject_into_urllib3() File "/usr/lib/python2.7/site-packages/urllib3/contrib/pyopenssl.py",line 112,in inject_into_urllib3 _validate_dependencies_met() File "/usr/lib/python2.7/site-packages/urllib3/contrib/pyopenssl.py",line 147,in _validate_dependencies_met raise ImportError("'pyOpenSSL' module missing required functionality. " ImportError: 'pyOpenSSL' module missing required functionality. Try upgrading to v0.14 or newer. [root@f2 ~]# 

这个时候已经快大功告成了,执行升级即可:

pip install pyOpenSSL
pip install PyOpenSSL
原文链接:https://www.f2er.com/centos/375274.html

猜你在找的CentOS相关文章