让我们加密 digitalocean ubuntu 16.0 中用于烧瓶应用程序的 SSL 安装问题



当我安装letsencrypt get问题的ssl 时;我在DigitalOcean和Ubuntu 16.4上使用Apache for Flask应用程序。我已经使用 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-deps', '-U'] 由 命令 = ['pip

', 'install', '--no-index', '--no-deps', '-U']但不是任何可能的结果。我遇到这样的问题: '''

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

'''

我找到了两种修复此错误的方法:

  1. 运行以下命令以升级 pip,然后重新安装 virtualenv:
pip install --upgrade pip
pip uninstall virtualenv
pip install virtualenv
    检查 virtualenv
  1. 的位置 - 它可能在/usr/bin/virtualenv 中。如果它不存在,但有一个 virtualenv 后面有一个数字,如 virtualenv-2 或 virtualenv-2.7,那么从 virtualenv 到这些现有文件之一的符号链接。

相关内容

最新更新