Certbot certificate installation ImportError: No module named interface error problem

错误信息如下:
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 <module>
    from certbot.main import main
  File "/root/.local/share/letsencrypt/local/lib/python2.7/dist-packages/certbot/main.py", line 7, in <module>
    import zope.component
  File "/root/.local/share/letsencrypt/local/lib/python2.7/dist-packages/zope/component/__init__.py", line 16, in <module>
    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. Execute the domain name installation command

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326604105&siteId=291194637