无法运行certbot(在生产中)

时间:2018-09-24 22:40:32

标签: python lets-encrypt certbot

当我尝试运行certbot -h

时遇到了这个问题
Traceback (most recent call last):
  File "/usr/local/bin/certbot", line 7, in <module>
    from certbot.main import main
  File "/usr/local/lib/python2.7/dist-packages/certbot/main.py", line 11, in <module>
    import zope.component
  File "/usr/local/lib/python2.7/dist-packages/zope/component/__init__.py", line 16, in <module>
    from zope.interface import Interface
ImportError: No module named interface

我尝试重新安装它。但是没有帮助

1 个答案:

答案 0 :(得分:0)

certbot的Windows兼容性正在进行中。您应该考虑使用以下命令在Linux VM上安装和运行:

sudo apt-get update
$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:certbot/certbot
$ sudo apt-get update
$ sudo apt-get install certbot