码迷,mamicode.com
首页 > 其他好文 > 详细

利用letsencrypte生成证书时,create virtual environment失败

时间:2017-07-30 23:54:53      阅读:562      评论:0      收藏:0      [点我收藏+]

标签:letsencrypt   oserror   

 ./letsencrypt-auto certonly --standalone

利用letsencrypt生成证书时 ,出现下面错误提示


0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.

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/python - setuptools pkg_resources pip wheel failed with error code 1


解决办法:

卸载virtualenv

     pip uninstall virtualenv

安装virtualenv

     pip install virtualenv



利用letsencrypte生成证书时,create virtual environment失败

标签:letsencrypt   oserror   

原文地址:http://12880687.blog.51cto.com/12870687/1952059

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!