利用letsencrypte生成证书时,create virtual environment失败
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了利用letsencrypte生成证书时,create virtual environment失败相关的知识,希望对你有一定的参考价值。
./letsencrypt-auto certonly --standalone
利用letsencrypt生成证书时 ,出现下面错误提示
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
Creating virtual environment...
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/virtualenv.py", line 2363, in <module>
main()
File "/usr/lib/python3/dist-packages/virtualenv.py", line 719, in main
symlink=options.symlink)
File "/usr/lib/python3/dist-packages/virtualenv.py", line 988, in create_environment
download=download,
File "/usr/lib/python3/dist-packages/virtualenv.py", line 918, in install_wheel
call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
File "/usr/lib/python3/dist-packages/virtualenv.py", line 812, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command /root/.local/share/letsencrypt/bin/python - setuptools pkg_resources pip wheel failed with error code 1
解决办法:
卸载virtualenv
pip uninstall virtualenv
安装virtualenv
pip install virtualenv
以上是关于利用letsencrypte生成证书时,create virtual environment失败的主要内容,如果未能解决你的问题,请参考以下文章
[web建站]-简单通过letsencrypt配置HTTPS证书
为微信小程序开发做准备,在Centos 6.8下利用letsencrypt.sh脚本为nginx 配置免费https证书
SaltStack-OpenSSL-Pkcs12:如何使用saltStack转换生成的letsencrypt证书
windows server使用 LetsEncrypt-Win-Simple来安装和使用用Let's Encrypt免费SSL证书