- 积分
- 8
- 威望
-
- 金钱
-
- 注册时间
- 2017-1-12
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2017-9-9 18:54:32
|
显示全部楼层
=================================================================
初次安装的结果:
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 /opt/eff.org/certbot/venv/bin/python2.7 - setuptools pkg_resources pip wheel failed with error code 2
Let's Encrypt SSL Certificate create failed!
================================================
按你的方式下边
root@iZt4n7pcfh0ryjktbsg5ooZ:~# apt-get purge python-virtualenv python3-virtualenv virtualenv
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
python-virtualenv* python3-virtualenv* virtualenv*
0 upgraded, 0 newly installed, 3 to remove and 87 not upgraded.
After this operation, 316 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 101972 files and directories currently installed.)
Removing python-virtualenv (15.0.1+ds-3ubuntu1) ...
Removing virtualenv (15.0.1+ds-3ubuntu1) ...
Removing python3-virtualenv (15.0.1+ds-3ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
root@iZt4n7pcfh0ryjktbsg5ooZ:~# pip install --upgrade pip
Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages
root@iZt4n7pcfh0ryjktbsg5ooZ:~# pip install virtualenv
Collecting virtualenv
Downloading http://mirrors.aliyun.com/pypi/packages/6f/86/3dc328ee7b1a6419ebfac7896d882fba83c48e3561d22ddddf38294d3e83/virtualenv-15.1.0-py2.py3-none-any.whl (1.8MB)
100% |████████████████████████████████| 1.8MB 62.6MB/s
Installing collected packages: virtualenv
Successfully installed virtualenv-15.1.0
root@iZt4n7pcfh0ryjktbsg5ooZ:~# pip install virtualenv
Requirement already satisfied: virtualenv in /usr/local/lib/python2.7/dist-packages
==================================================================================================
重新添加ssl得到结果:
=====================================================
Certbot has problem setting up the virtual environment.
We were not be able to guess the right solution from your pip
output.
Consult https://certbot.eff.org/docs/install.html#problems-with-python-virtual-environment
for possible solutions.
You may also find some support resources at https://certbot.eff.org/support/ .
Let's Encrypt SSL Certificate create failed! |
|