利用let's encrypte生成证书时,报“setuptools pkg_resources pip wheel ……”错误解决办法
来源:互联网 发布:linux ping脚本 编辑:程序博客网 时间:2024/06/02 04:11
问题描述
利用letsencrypt生成证书时 ,出现下面错误提示
./letsencrypt-auto certonly -a webroot -webroot-path=/var/www/html/ -d www.
resp.raise_for_status()
File “/root/.local/share/letsencrypt/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/models.py”, line 840, in raise_for_status
raise HTTPError(http_error_msg, response=self)
HTTPError: 404 Client Error: Not Found for url: http://mirrors.aliyun.com/pypi/simple/pkg-resources/
…Installing setuptools, pkg_resources, pip, wheel…done.
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/virtualenv.py”, line 2363, in
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
查得资料
网上查该问题,有人说本地安装了多个python引起的,然而并没有给解决方案。其实可能根本原因还是linux下的这个virtualenv跟let’s encrypte安装过程中某一环节冲突了。
解决办法:
卸载virtualenv
pip uninstall virtualenv
安装virtualenv
pip install virtualenv
参考:http://12880687.blog.51cto.com/12870687/1952059
- 利用let's encrypte生成证书时,报“setuptools pkg_resources pip wheel ……”错误解决办法
- python2.7 pip 报错“Failed building wheel for …”解决办法
- let's encrypt 生成证书时,404 not found的错误
- let's sencrypt 生成ssl证书
- 解决Let’s Encrypt SSL证书配置错误
- pip安装错误:ImportError: No module named 'pkg_resources'
- Let's Encrypt证书使用
- nginx配置https/证书更新/ Let's encrypt免费证书(https)以及错误解决!
- Python pip pkg_resources.DistributionNotFound
- Python pip install出现报ASCII码错误解决办法
- 利用SSL For Free工具3分钟获取Let's Encrypt免费SSL证书(https免费证书)
- gem install安装报SSL证书错误的解决办法
- 配置新版 Let’s Encrypt (Certbot) 证书
- 免费ssl证书:Let's Encrypt
- 申请Let's Encrypt的证书
- Let's Encrypt申请认证获取证书
- Let's Encrypt dns验证获取证书
- Let’s Encrypt SSL证书申请流程
- redis info详解
- cmake链接依赖
- 安装VM的问题:此主机支持 Intel VT-x,但 Intel VT-x 处于禁用状态
- 【二叉树】257. Binary Tree Paths
- Java线程问题
- 利用let's encrypte生成证书时,报“setuptools pkg_resources pip wheel ……”错误解决办法
- shell中if做比较
- 仿微信swipebacklayout侧滑界面
- Java最近时间处理类
- Netty源码解读(二)Netty中的buffer
- MyBatis7:MyBatis插件及示例----打印每条SQL语句及其执行时间
- 项目中引入log4j
- 【JavaWeb】0810-0811 Servlet
- Python笔记(二)——高级特性|函数式编程