Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificat
问题描述
cmd 输入 pip install {包名} 或者 cmd 输入 python -m pip install --upgrade pip 出现如下错误:
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status
=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in vio
lation of protocol (_ssl.c:777)'),)': /simple/pip/WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status
=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in vio
lation of protocol (_ssl.c:777)'),)': /simple/pip/WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status
=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in vio
lation of protocol (_ssl.c:777)'),)': /simple/pip/WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status
=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in vio
lation of protocol (_ssl.c:777)'),)': /simple/pip/WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status
=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in vio
lation of protocol (_ssl.c:777)'),)': /simple/pip/Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirmingthe ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retrie
s exceeded with url: /simple/pip/ (Caused by SSLError(SSLEOFError(8, 'EOF occurr
ed in violation of protocol (_ssl.c:777)'),)) - skippingCould not fetch URL https://pypi.org/simple/pip/: There was a problem confirmingthe ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retrie
s exceeded with url: /simple/pip/ (Caused by SSLError(SSLEOFError(8, 'EOF occurr
ed in violation of protocol (_ssl.c:777)'),)) - skipping
网上找了很多方法,下面给出自己最后的解决方法:
Step1:
进入cmd ,输入指令,在C:/user/xx/路径下创建文件夹,并命名为“pip”
C:\Users\maple>md pip
Step2 :
在该文件夹下面创建一个文本文件,输入如下内容,并保存为名字为“pip.ini”(注意后缀)
[global]index-url=http://mirrors.aliyun.com/pypi/simple/[install]trusted-host=mirrors.aliyun.com
Step3:
配置系统变量Path,在最后添加如下内容(注意和前面内容之间用;隔开):
C:\Users\maple\pip\pip.in;
这一步也就是告诉系统可执行文件pip.ini的路径~~~
验证:
重新输入 pip install {包名} 成功!!! 如果有更好的解决办法欢迎各位留言私信提出来 :P ≈
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificat相关推荐
- 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 ...
- pip或pip3安装报错Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming。。。
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate ...
- 【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/: There was a problem confirming
这种问题 自己查查 python的环境变量配好了没有!!!! ====上面一句话很重要========= 不会配环境变量的 看这个https://segmentfault.com/q/10100000 ...
- Could not fetch URL https://pypi.org/simple/pip/
Could not fetch URL https://pypi.org/simple/pip/ 解决办法 更换pip安装源头成阿里云或清华的 在Windows%appdata%/pip/pip.in ...
- 使用镜像源和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/: There was a problem confirming the ssl certi
** WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after con ...
- 解决 ‘Could not fetch URL https://pypi.python.org’的问题
[前提]: win10下python3和python2共存环境,但是环境变量只配置了python3 [问题]: 用pip安装一个包 执行pip2 install xxx的时候报错 Fatal erro ...
- 已解决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 ...
- 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 今天 ...
最新文章
- Linux安全检查方法
- 图解|什么是高并发利器NoSQL
- python学习--函数例子
- SLua 中继承 C# 类接口 Slua.Class 的一个 Bug。
- sublime text使用正则表达式批量给KV加
- 全国首家工资总额负面清单管理试点企业获批
- 移动开发技术新趋向(三)
- R语言含中文数据导入的方法
- 如何自己编写JDK帮助文档
- 微信小程序简单签到功能源码分享
- MySQL的安装与配置——详细教程
- java 僵尸进程_僵尸进程ZOMBIE
- R 语言 单位根检验
- 宅家必备 | 笔记本开启WiFi共享
- 【Eternallyc】函数PlaySound和sndPlaySound
- C#开发之——MonthCalendar(12.18)
- Python数据分析项目-微信好友数据分析
- 微信小程序订阅消息记录坑
- 苹果手机有锁那些事,小心被坑
- 【Joy of Cryptography 读书笔记】Chapter 6 伪随机函数(Pseudorandom Function)分组密码(Block Cipher)
热门文章
- 5分钟摄像头抓拍一次,居家一天至少89次!尚德员工:连厕所都不敢上
- SqlServer 2008出现远程过程调用失败,错误代码[Ox800706be]
- Axure8超详细使用教程(含安装包)
- C++ 逻辑与或非 逻辑与逻辑或 逻辑非
- 文件关联后即时生效代码
- QGIS:让数据随时间动起来
- Warning: You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed
- 计算机中的right函数,excel的right函数的使用教程
- 维度灾难--通过Python理解高维空间欧氏距离与余弦相似度失效
- 麦森数 OpenJ_Bailian - 2706