VPS侦探论坛

 找回密码
 注册
查看: 3975|回复: 3

添加ssl时出现了问题

[复制链接]
发表于 2017-1-17 20:16:17 | 显示全部楼层 |阅读模式

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 /root/.local/share/letsencrypt/bin/python2.7 - setuptools pkg_resources pip wheel failed with error code 2
Let's Encrypt SSL Certificate create failed!
pip是python2的
root@VM-12-73-ubuntu:/usr/bin# pip -V
pip 9.0.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)
换成python3还是不行

[ 本帖最后由 ztcaoll222 于 2017-1-17 21:00 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-1-18 09:39:48 | 显示全部楼层


不大清楚具体原因,你python默认版本是哪个,你rm -rf /root/.local/share/letsencrypt/ 后再试试
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-1-18 13:21:27 | 显示全部楼层

回复 2# 的帖子


换成centos 7.2 就没问题了,半解决

默认是2.7
root@VM-12-73-ubuntu:~# python -V
Python 2.7.12
已经删过了,还是没用
Virtualhost infomation:
Your domain: ztcaoll222.cn
Home Directory: /home/wwwroot/ztcaoll222.cn
Rewrite: wordpress
Enable log: yes
Database username: ****
Database userpassword: *******
Database Name: *****
Create ftp account: no
Enable SSL: yes
  =>Let's Encrypt
系统是ubuntu 16.04.1 x64
root@VM-12-73-ubuntu:~# uname -a
Linux VM-12-73-ubuntu 4.9.3-040903-generic #201701120631 SMP Thu Jan 12 11:33:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

[ 本帖最后由 ztcaoll222 于 2017-1-18 16:15 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-1-18 19:52:44 | 显示全部楼层



那就不大清楚了,建议去Letsencrypt官网问问
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-17 00:47 , Processed in 0.026255 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表