问题描述

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相关推荐

  1. 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 ...

  2. 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 ...

  3. 【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 ...

  4. Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming

    这种问题 自己查查 python的环境变量配好了没有!!!! ====上面一句话很重要========= 不会配环境变量的 看这个https://segmentfault.com/q/10100000 ...

  5. Could not fetch URL https://pypi.org/simple/pip/

    Could not fetch URL https://pypi.org/simple/pip/ 解决办法 更换pip安装源头成阿里云或清华的 在Windows%appdata%/pip/pip.in ...

  6. 使用镜像源和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 ...

  7. 使用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 ...

  8. 解决 ‘Could not fetch URL https://pypi.python.org’的问题

    [前提]: win10下python3和python2共存环境,但是环境变量只配置了python3 [问题]: 用pip安装一个包 执行pip2 install xxx的时候报错 Fatal erro ...

  9. 已解决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 ...

  10. 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 今天 ...

最新文章

  1. Linux安全检查方法
  2. 图解|什么是高并发利器NoSQL
  3. python学习--函数例子
  4. SLua 中继承 C# 类接口 Slua.Class 的一个 Bug。
  5. sublime text使用正则表达式批量给KV加
  6. 全国首家工资总额负面清单管理试点企业获批
  7. 移动开发技术新趋向(三)
  8. R语言含中文数据导入的方法
  9. 如何自己编写JDK帮助文档
  10. 微信小程序简单签到功能源码分享
  11. MySQL的安装与配置——详细教程
  12. java 僵尸进程_僵尸进程ZOMBIE
  13. R 语言 单位根检验
  14. 宅家必备 | 笔记本开启WiFi共享
  15. 【Eternallyc】函数PlaySound和sndPlaySound
  16. C#开发之——MonthCalendar(12.18)
  17. Python数据分析项目-微信好友数据分析
  18. 微信小程序订阅消息记录坑
  19. 苹果手机有锁那些事,小心被坑
  20. 【Joy of Cryptography 读书笔记】Chapter 6 伪随机函数(Pseudorandom Function)分组密码(Block Cipher)

热门文章

  1. 5分钟摄像头抓拍一次,居家一天至少89次!尚德员工:连厕所都不敢上
  2. SqlServer 2008出现远程过程调用失败,错误代码[Ox800706be]
  3. Axure8超详细使用教程(含安装包)
  4. C++ 逻辑与或非 逻辑与逻辑或 逻辑非
  5. 文件关联后即时生效代码
  6. QGIS:让数据随时间动起来
  7. Warning: You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed
  8. 计算机中的right函数,excel的right函数的使用教程
  9. 维度灾难--通过Python理解高维空间欧氏距离与余弦相似度失效
  10. 麦森数 OpenJ_Bailian - 2706