当我安装ssl的letsencrypt获取问题时,我在数字海洋和ubuntu16.4上使用apache作为烧瓶应用程序。我使用python3安装了virtualenv。我也尝试过一些代码
第1347和1357行: pip_version = StrictVersion(check_output(python,'-m','pip',‘-version’),pip_version = StrictVersion(check_output('pip',‘-version’),命令= python,'-m','pip','install',‘-no-index’,‘-no-index’,‘-no-deps’,'-U‘by命令= 'pip','install',’-no-index‘,“-没有-”,-
但没有任何可能的结果。我的问题是:‘
root@ubuntu-s-1vcpu-2gb-sgp1-01:/letsencrypt/letsencrypt# ./letsencrypt-auto --help
Bootstrapping dependencies for Debian-based OSes... (you can skip this with --no-bootstrap)
Get:1 http://mirrors.digitalocean.com/ubuntu bionic InRelease [242 kB]
Hit:2 http://mirrors.digitalocean.com/ubuntu bionic-updates InRelease
Hit:3 http://mirrors.digitalocean.com/ubuntu bionic-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease
Fetched 242 kB in 1s (455 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
augeas-lenses is already the newest version (1.10.1-2).
libaugeas0 is already the newest version (1.10.1-2).
libffi-dev is already the newest version (3.2.1-8).
python is already the newest version (2.7.15~rc1-1).
python-dev is already the newest version (2.7.15~rc1-1).
python-virtualenv is already the newest version (15.1.0+ds-1.1).
virtualenv is already the newest version (15.1.0+ds-1.1).
ca-certificates is already the newest version (20190110~18.04.1).
gcc is already the newest version (4:7.4.0-1ubuntu2.3).
libssl-dev is already the newest version (1.1.1-1ubuntu2.1~18.04.6).
openssl is already the newest version (1.1.1-1ubuntu2.1~18.04.6).
0 upgraded, 0 newly installed, 0 to remove and 63 not upgraded.
Creating virtual environment...
usage: virtualenv [--version] [--with-traceback] [-v | -q] [--app-data APP_DATA] [--clear-app-data]
[--discovery {builtin}] [-p py] [--creator {builtin,cpython2-posix}] [--seeder {app-data,pip}] [--no-
seed] [--activators comma_sep_list]
[--clear] [--system-site-packages] [--symlinks | --copies] [--no-download | --download]
[--extra-search-dir d [d ...]] [--pip version] [--setuptools version] [--wheel version] [--no-pip] [-
-no-setuptools] [--no-wheel]
[--symlink-app-data] [--prompt prompt] [-h]
dest
virtualenv: error: unrecognized arguments: --no-site-packages
Traceback (most recent call last):
File "<stdin>", line 27, in <module>
File "<stdin>", line 19, in create_venv
File "/usr/lib/python2.7/subprocess.py", line 190, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['virtualenv', '--no-site-packages', '--python',
'/usr/bin/python2.7', '/opt/eff.org/certbot/venv']' returned non-zero exit status 2“”“
发布于 2020-12-29 17:39:47
我找到了两种修复此错误的方法:
pip install --upgrade pip
pip uninstall virtualenv
pip install virtualenvhttps://stackoverflow.com/questions/62208499
复制相似问题