解决 ‘Could not fetch URL https://pypi.python.org’的问题
【前提】:
win10下python3和python2共存环境,但是环境变量只配置了python3
【问题】:
用pip安装一个包
执行pip2 install xxx的时候报错
Fatal error in launcher: Unable to create process using '"'
执行pip3 install xxx的时候报同样的错误
Fatal error in launcher: Unable to create process using '"'
【解决】:
python2 -m pip install XXX
python3 -m pip install XXX
报了新的错误 :
Could not fetch URL https://pypi.org/simple/xlsxwriter/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/xlsxwriter/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1056)'))) - skipping
研究了好久只知道是证书的错误~按照网上的各种指导尝试了如下方案
1.第一种尝试方式:直接下载get-pip.py文件,执行命令python get-pip.py 结果是:失败
2.第二种尝试方式:加上--trusted-host 执行 pip --trusted-host pypi.python.org install xxx 结果是:失败
3.第三种尝试:发现是url的来源的问题,换成了国内的pip源就可以正常安装了,我使用的是:pip install xlrd -i http://pypi.douban.com/simple --trusted-host pypi.douban.com,结果:失败
1)http://mirrors.aliyun.com/pypi/simple/ 阿里云
2)https://pypi.mirrors.ustc.edu.cn/simple/ 中国科技大学
3) http://pypi.douban.com/simple/ 豆瓣
4) https://pypi.tuna.tsinghua.edu.cn/simple/ 清华大学
5) http://pypi.mirrors.ustc.edu.cn/simple/ 中国科学技术大学
4.第四种尝试:思考了一下混合了两个问题的解决方法,使用命令python -m pip install xlsxwriter --trusted-host=pypi.python.org --trusted-host=pypi.org --trusted-host=files.pythonhosted.org ,结果:成功
转载于:https://www.cnblogs.com/mumuluo/p/11308468.html
解决 ‘Could not fetch URL https://pypi.python.org’的问题相关推荐
- Could not fetch URL https://pypi.python.org/simple/: connection error: HTTPSConnectionPool(host='pyp
首先说明我本人使用的是python2.7,今天使用pycharm的的时候一直不行,我本人也是一个新手,在网上查资料的时候看到很多命令行的方法,当时我有点懵,不知道这这些的命令行的往哪里敲,所以这里多说 ...
- 已解决Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/pip/: There was a problem confirming
已解决(pip升级报错) WARNING: pip is configured with locations that require TLS/SSL, however the ssl module ...
- 成功解决Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/xx/: There was a problem confirming
pip安装xxx库出现问题: 比如,xxx是pandas (py37) user@node01:~$ pip install pandas Looking in indexes: https://py ...
- 使用镜像源和trust-host解决:Could not fetch URL https://pypi.org/simple/xxxx/
pip install xxx包报错: Could not fetch URL https://pypi.org/simple/xxxx/: There was a problem confirmin ...
- 【pip报错】Could not fetch URL https://pypi.org/simple/gast/:There was a problem confirming the ssl cert
pip install -r requirements.txt 问题1: [报错]Could not fetch URL https://pypi.org/simple/gast/: There wa ...
- Could not fetch URL https://pypi.org/simple/pip/
Could not fetch URL https://pypi.org/simple/pip/ 解决办法 更换pip安装源头成阿里云或清华的 在Windows%appdata%/pip/pip.in ...
- Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate
安装jsonpath:>pip install jsonpath 报错:Could not fetch URL https://pypi.org/simple/pip/: There was a ...
- Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/pip/: There was a problem confirming th
在使用pip 指令的时候,出现了以下问题.当时使用pip list查看的时候,就出现了下面的问题: Could not fetch URL https://pypi.tuna.tsinghua.edu ...
- pip报错:Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/pip/: There was a problem confirm
Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/pip/: There was a problem confirming 今天 ...
最新文章
- Spring事务管理3----声明式事务管理(1)
- python batch normalization_Batch Normalization 引出的一系列问题
- omnigraffle怎么画曲线
- 精准评论是如何在娱乐类产品中大放异彩?
- 简述dijkstra算法原理_Dijkstra算法之 Java详解
- mysql查询选课最少成绩最高_MySQL 练习
- 依赖倒置原则_设计模式之SOLID原则
- NOIP2015题解
- python 拼音输入法_隐马尔科夫模型python实现简单拼音输入法
- 适配器模式的三种形式
- 《可转债投资魔法书》:魔法般教会你可转债
- Winform开发框架之Office Ribbon界面
- C++性能优化笔记-13-特定优化主题
- css 小功能实现收藏
- Echarts的折线图堆叠示例,去掉线上小圆圈;多条折现可重叠。
- pandas操作excel文件,替换目标值
- 计算机桌面最小化后找不到,微博桌面最小化后找不到图标了怎么办??
- 【Android取证篇】Android设备USB调试打开方式(开发者模式)
- redis 缓存 2023面试题总结
- 造成商业软件失败的13种原因
热门文章
- Oracle用户密码使用特殊符号,例如(AND)、$(Dollar)、#(Pound)、*(Star)等
- springboot 事务_第六章:springboot开启声明式事务
- git命令提交本地代码到远程仓库
- CentOS 7 安装 JAVA环境(JDK 1.8)
- window打开IIS
- Apache POI读取Excel
- Kotlin入门(18)利用单例对象获取时间
- Android开发笔记(一百五十二)H5通过WebView上传图片
- Android开发笔记(三十一)SQLite游标及其数据结构
- AttributeError: 'dict' object has no attribute 'has_key'