Certbot证书安装ImportError: No module named interface错误问题

错误信息如下:
Error: couldn't get currently installed version for /root/.local/share/letsencrypt/bin/letsencrypt:
Traceback (most recent call last):
File "/root/.local/share/letsencrypt/bin/letsencrypt", line 7, in
from certbot.main import main
File "/root/.local/share/letsencrypt/local/lib/python2.7/dist-packages/certbot/main.py", line 7, in
import zope.component
File "/root/.local/share/letsencrypt/local/lib/python2.7/dist-packages/zope/component/__init__.py", line 16, in
from zope.interface import Interface
ImportError: No module named interface


certbot安装证书报如上错误的解决方案:
1、unset PYTHON_INSTALL_LAYOUT;
2、rm -rf /root/.local/share/letsencrypt/;
3、/root/certbot-auto renew --debug
4.执行域名安装命令即可

你可能感兴趣的:(Certbot安装证书)