1. 程式人生 > >利用letsencrypte生成證書時,create virtual environment失敗

利用letsencrypte生成證書時,create virtual environment失敗

letsencrypt oserror

./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失敗