gpt4 book ai didi

python - 在 AWS EC2 CentOS 7.4 中运行 Certbot 时出错

转载 作者:行者123 更新时间:2023-12-04 19:30:55 25 4
gpt4 key购买 nike

当我运行 sudo certbot在终端上

得到以下错误

  [root@ip-111-111-111-111 home]# sudo certbot
Traceback (most recent call last):
File "/bin/certbot", line 9, in <module>
load_entry_point('certbot==1.0.0', 'console_scripts', 'certbot')()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/lib/python2.7/site-packages/certbot/main.py", line 2, in <module>
from certbot._internal import main as internal_main
File "/usr/lib/python2.7/site-packages/certbot/_internal/main.py", line 20, in <module>
from certbot._internal import client
File "/usr/lib/python2.7/site-packages/certbot/_internal/client.py", line 14, in <module>
from acme import client as acme_client
File "/usr/lib/python2.7/site-packages/acme/client.py", line 37, in <module>
requests.packages.urllib3.contrib.pyopenssl.inject_into_urllib3() # type: ignore
File "/usr/lib/python2.7/site-packages/urllib3/contrib/pyopenssl.py", line 118, in inject_into_urllib3
_validate_dependencies_met()
File "/usr/lib/python2.7/site-packages/urllib3/contrib/pyopenssl.py", line 153, in _validate_dependencies_met
raise ImportError("'pyOpenSSL' module missing required functionality. "
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.
尝试使用以下命令升级软件包:
$ pip install "pyOpenSSL>=0.14"
...

关于python - 在 AWS EC2 CentOS 7.4 中运行 Certbot 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59871564/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com