Centos 7.6 Certbot 报错ImportError: cannot import name UnrewindableBodyError
今天早上在给一台服务器安装HTTPS的时候运行Certbot时报错:ImportError: cannot import name UnrewindableBodyError,安装一个urllib3就可以了。
easy_install urllib3==1.21.1
#我这里这直先直接安装urllib3 然后报错pkg_resources.DistributionNotFound:urllib3<1.23 ,>=1.21.1distribution was not found and is required。所以直接指定了需要的版本就可以了。
继续运行程序这次报了一个新的错误:AttributeError: ‘module’ object has no attribute ‘SSL_ST_INIT’ 升级一下pyopenssl即可;
easy_install --upgrade pyOpenSSL
如果您在解决问题的过程遇到任何其他问题欢迎咨询。
版权所有©艾克斯记事-转载文章请注明出处(带链接)