我不断收到此错误:
Traceback (most recent call last):
File "/opt/eff.org/certbot/venv/bin/letsencrypt", line 7, in <module>
from certbot.main import main
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/certbot/main.py", line 10, in <module>
import josepy as jose
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/josepy/__init__.py", line 44, in <module>
from josepy.interfaces import JSONDeSerializable
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/josepy/interfaces.py", line 8, in <module>
from josepy import errors, util
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/josepy/util.py", line 4, in <module>
import OpenSSL
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import crypto, SSL
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/OpenSSL/crypto.py", line 12, in <module>
from cryptography import x509
ImportError: No module named cryptography
当我运行命令时:
./letsencrypt-auto certonly --standalone --email <email> -d <domain> -d <sub-domain>
我遵循的所有指南都会遇到此错误。我不知道如何摆脱这个错误。我什至尝试过rm -rf eff.org。我仍然无法正常工作。
我正在使用Amazon EC2 Linux 1(Red Hat)。
答案 0 :(得分:0)
我遇到了类似的问题,并通过pip安装了certbot来解决。
删除/opt/eff.org / *
然后pip install -U certbot
和certbot
命令可以正常工作。