我使用的是Amazon,我遵循了一些步骤,使用在google搜索中很容易找到的letsencrypt,但所有这些步骤都失败了:
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 11, 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我所做的是:
# git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt
# /opt/letsencrypt/letsencrypt-auto --debug就这样。所以我试着解决这个问题,但是我找到的几十个解决方案对我来说都是行不通的。
他们中的大多数人说试一试:
未设置PYTHON_INSTALL_LAYOUT
但还是有同样的错误,没有什么改变。有人说是这样的:
pip安装--升级pip
但是在输入后,我不能再使用pip了,它失败了,因为某种命令没有找到错误,所以我重新创建了我的服务器。
我也尝试使用CertBot,但它给了我完全相同的错误!
我正在使用Linux4.4.51-40.58.amzn1.x86_64 x86_64,需要帮助。我花了将近一天,但没有任何进展。
我发现的每一个解决方案都不是对我有效的。任何建议都会很感激的。
发布于 2017-04-24 17:09:49
我也有同样的问题,经过长期运行,在我的AWS实例中,一件非常简单的事情解决了这个问题:
sudo mv /root/.local/share/letsencrypt /root/.local/share/letsencrypt-oldgit clone https://github.com/letsencrypt/letsencryptsudo ./letsencrypt-auto --debug在我寻找解决方案的过程中,我还更新了pip,这可能会有所帮助。尽管我在pip更新后的尝试并没有以清理letsencen相缓存文件夹的方式解决我的问题。
我希望这能帮到你。如果没有,我可以分享一些关于同一问题的链接:
发布于 2017-11-04 09:32:00
删除certbot目录对我起了作用。
rm -rf /opt/eff.org/certbot/
wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto
sudo ./certbot-auto certonly --standalone -d example.com --no-bootstrap发布于 2017-09-08 21:18:00
对我来说,这部分问题与安装64位包时的一些奇怪的默认行为有关,但没有被python捕获。获得此问题后,此时主要安装了它,请运行以下命令
cd /root/.local/share/letsencrypt
\cp -r ./venv/lib64/* ./venv/lib/然后重试命令。python虚拟环境的安装位置随版本和操作系统的不同而变化,但一般原理帮助我调试了两种不同的安装。
https://stackoverflow.com/questions/42734006
复制相似问题