首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >用于烧瓶应用程序的数字海洋ubuntu 16.0中的ssl安装问题

用于烧瓶应用程序的数字海洋ubuntu 16.0中的ssl安装问题
EN

Stack Overflow用户
提问于 2020-06-05 05:06:20
回答 1查看 110关注 0票数 0

当我安装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‘,“-没有-”,-

但没有任何可能的结果。我的问题是:‘

代码语言:javascript
复制
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

“”“

EN

回答 1

Stack Overflow用户

发布于 2020-12-29 17:39:47

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

  1. 运行以下命令来升级pip,然后重新安装

代码语言:javascript
复制
pip install --upgrade pip
pip uninstall virtualenv
pip install virtualenv

  1. 检查virtualenv的位置-它可能在/usr/bin/virtualenv中。如果它不存在,但那里有一个虚拟文件,其后面有一个数字,如虚拟one 2或virtualenv-2.7,则创建一个符号链接,将其从virtualenv到其中一个现有文件。
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62208499

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档