
折腾了好久了都, Let ’ s Encrypt 证书续期总是出现这个 virtualenv 的问题,我的VPS用的是Debian,求大虾帮忙看看是哪里出问题了? 具体提示如下:
…… libffi-dev is already the newest version. python is already the newest version. python-dev is already the newest version. python-virtualenv is already the newest version. virtualenv is already the newest version. libssl-dev is already the newest version. openssl is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Creating virtual environment... Traceback (most recent call last): File "/usr/local/bin/virtualenv", line 7, in <module> from virtualenv import main ImportError: No module named virtualenv 到这里就停止了,造成 Let ’ s Encrypt 证书续期无法完成,求解?
如果运行pip install virtualenv的话,也是错误一堆:
…… File "/usr/local/lib/python2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main status = self.run(options, args) File "/usr/local/lib/python2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", line 272, in run with self._build_session(options) as session: File "/usr/local/lib/python2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 72, in _build_session insecure_hosts=options.trusted_hosts, File "/usr/local/lib/python2.7/site-packages/pip-9.0.1-py2.7.egg/pip/download.py", line 329, in __init__ self.headers["User-Agent"] = user_agent() File "/usr/local/lib/python2.7/site-packages/pip-9.0.1-py2.7.egg/pip/download.py", line 93, in user_agent from pip._vendor import distro File "/usr/local/lib/python2.7/site-packages/pip-9.0.1-py2.7.egg/pip/_vendor/distro.py", line 1050, in <module> _distro = LinuxDistribution() File "/usr/local/lib/python2.7/site-packages/pip-9.0.1-py2.7.egg/pip/_vendor/distro.py", line 594, in __init__ if include_lsb else {} File "/usr/local/lib/python2.7/site-packages/pip-9.0.1-py2.7.egg/pip/_vendor/distro.py", line 933, in _get_lsb_release_info raise subprocess.CalledProcessError(code, cmd, stdout) …… File "/usr/local/bin/pip", line 9, in <module> load_entry_point('pip==9.0.1', 'console_scripts', 'pip')() File "/usr/local/lib/python2.7/site-packages/pip-9.0.1-py2.7.egg/pip/__init__.py", line 233, in main return command.main(cmd_args) …… if include_lsb else {} File "/usr/local/lib/python2.7/site-packages/pip-9.0.1-py2.7.egg/pip/_vendor/distro.py", line 933, in _get_lsb_release_info raise subprocess.CalledProcessError(code, cmd, stdout) subprocess.CalledProcessError: Command 'lsb_release -a' returned non-zero exit status 1 这难道是python依赖库出问题了?还是pip的问题呀?
1 d7101120120 2017-04-08 17:35:20 +08:00 pip install virtualenv |
2 cpublic OP @d7101120120 哎, pip 也是提示错误! |
3 jimmyye 2017-04-08 19:07:38 +08:00 用 https://github.com/Neilpang/acme.sh 吧,没有依赖,就一脚本 |
4 cpublic OP @
|