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/request/: There was a problem confirming the ssl..... 下有个-ip的临时文件,解决办法,去site-packages文件底下把-ip临时文件删除,这是一个无效分布警告(invalid distribution---产生原因,是在进行删除或者更新包的时候,将包重命名,即首字母改为-,但是由于终端,导致遗留),运行。结果还是不行,嘿嘿,仔细一看,结果发现是把request的s去了,这就修改一下。中国科技大学:https://pypi.mirrors.ustc.edu.cn/simple/尝试八:试着从新开始搞,结果直接整不行了,投降,先放着。 阅读详情

问题描述

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 confirming
 the 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

Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming
 the 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/mysqlclient/: There was a problem confirming the 这个错误是由于无法验证SSL证书而导致的,可能是因为系统没有找到相应的根证书或证书存储不完整。以下是几种解决这个问题的方法:使用更新包,这个包包含了最新的CA根证书: 方法二:使用自定义的认证根证书文件 如果系统上已经安装了证书,可以明确指定证书路径: 方法三:手动安装证书(仅适用于macOS) 如果你使用的是macOS,可以使用脚本来安装证书。 上面的命令会打开脚本文件,双击以运行它。这个脚本会为你安装所需的证书。可以禁用SSL验证来绕过证书验证,但这样做会有安全风险: 方法五:下载并手动安装包 如果以上 阅读详情

相关推荐

python3安装pip install报错Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirm

python3安装pip install报错Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirm

weixin_54626591的博客 1万+

pip install 错误

pip install 错误 WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl. c:852)'),)': /simple-i/pil/ WARNING: Retrying (Retry(t

feiyu68的博客 3042

python安装pip install报错Could not fetch URL https://pypi.org/simple/pip/...更换镜像源

python安装pip install报错Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirm

weixin_54626591的博客 8277

出现 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](pip安装其他) 在用python安装pylint时,出现以下情况: Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirmi...

weixin_43851030的博客 1万+

Halcon相机标定实战:从参数设置到精度优化全解析

本文详细解析Halcon相机标定的全流程,从基础概念到实战技巧,涵盖参数设置、精度优化及常见问题解决方案。通过实际案例和代码示例,帮助读者掌握工业视觉项目中相机标定的关键技术,提升测量精度和系统稳定性。

weixin_29279153的博客 331

体验灵雀云-创建基于Docker的云服务

今天体验了一下灵雀云,创建了第一个基于Docker的云服务。 1.登录灵雀云 2.开始使用 登录之后,从"控制台"进入操作界面,开始创建服务。 首先需要选择一个镜像。灵雀云已经为您提供了一些常用的镜像列表。请在“常用镜像”列表中,选择“其它”,然后找到“alauda/hello-world”镜像,点击它右侧的“选择”按钮,进入服务参数配置页面。 选择完要创建的

tomcat的专栏 3241

python安装插件包错误Could not fetch URL https://pypi.org/simple/requests/: There was a problem confirming t

在python环境中安装插件包时,出现错误如:Could not fetch URL https://pypi.org/simple/requests/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/requests/ (Caused by SSLError(SSLCertVe

进击的小白 828

Linux上搭建Fluent计算集群:硬件选型、MPI配置与Slurm调度实战

CFD仿真中,Fluent并行计算依赖MPI通信与集群资源调度。通过多节点Linux集群,结合高速网络与共享存储,可显著提升并行效率与计算规模。合理配置MPI环境与作业调度器,能实现资源自动化管理,避免单机内存与核心瓶颈。典型应用包括大规模网格求解、参数化扫描与多物理场耦合。本文聚焦中小规模Fluent集群搭建,详解硬件选型、系统配置、MPI匹配及Slurm调度全链路,助你从单机迁移至集群。

weixin_31292729的博客 283

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 problem confirming the ssl certificate: HTTPSConnectionPool(host=‘pypi.org’, port=443): Max retries...

fanxindong0620的博客 2518

用逐飞STC32G库做个智能小车:编码器测速、PWM调电机、ADC读电池电压(完整项目)

本文详细介绍了如何使用逐飞科技的STC32G12K128开源库构建智能小车项目,涵盖编码器测速、PWM电机控制和电池电压监测等核心功能。通过硬件选型、开发环境搭建、代码实现及调试技巧的全流程讲解,帮助开发者快速掌握基于STC32G的嵌入式系统开发,实现高性能的智能小车控制。

weixin_42526417的博客 203

ADS基础教程12 - 参数扫描

在硬件设计、仿真以及调试阶段,很多时候需要找到一个合理的参数来使设计处于最优状态。前面所讲的调优方式是其中的最直接的手段。因此,本文将介绍ADS中如何指定元器件的参数为变量,并可以对变量设置相应的约束条件,来实现的变量进行多组参数的仿真结果的展示。在图形显示界面,添加一个Plot,并添加参数结果。此时,结果中会显示出所有的扫描结果。参数扫描的要素包含:新建变量、变量参数设置、扫描模型设置三个方面。如果找不到该图标,在菜单栏单击右键,弹出的对话框将。,弹出的选项卡中,将添加两个变量。点击菜单栏的仿真按钮。

XZ_ZC的博客 8184

pip install xxx:Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming解决办法

pip install python_speech_features Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirmingthe ssl certificate: HTTPSConnectionPool(host=‘pypi.org’, port=443): Max retries exce...

dengweilan的博客 2995

UDF学习(二)基础数据类型与常见宏

thread_loop_c (t,d) 必须与begin_c_loop (c,t)同时使用,但begin_c_loop (c,t)不一定与thread_loop_c (t,d)同时使用。同理thread_loop_f(t,d)必须与begin_f_loop (c,t)同时使用,但begin_f_loop (c,t)不一定与thread_loop_f(t,d)同时使用。begin_c_loop (c,t) 在计算域内对网格单元进行循环。c_face_loop (c,t)遍历网格单元上的所有网格面。

weixin_44386973的博客 858

成功解决 Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl

一文解决问题 Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate

m0_37982378的博客 2413

订餐平台餐厅信息抓取:使用Python爬虫获取商家信息和用户评价

在这篇博客中,我们展示了如何使用Python爬虫抓取订餐平台上的餐厅信息和用户评价数据。通过使用requests和Selenium,我们能够有效地从静态和动态网页中提取数据,并使用pandas和matplotlib对数据进行存储和分析。未来,您可以根据需求进一步扩展功能,例如增加错误处理、增加抓取多个页面的能力,或者使用高级技术如分布式爬虫来抓取更大规模的数据。

2201_76125261的博客 1658

LCZ数据下载及处理-以重庆市为例(完整Python代码)

LCZ数据下载及处理-以重庆市为例(完整Python代码)

WW、forever的博客 622

使用pip报错:Could not fetch URL https://pypi.org/simple/selenium/: There was a problem confirming the ss

在使用pip安装python3的第三方包的时候出现了错误。 错误如下: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Collecting selenium Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connec.

zkbaba的博客 6万+

精雕软件(JDpaint) 5.5 绿色版

精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版

pip或pip3安装报错Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming。。。

Could not fetch URL https://pypi.org/simple/xxx/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/xxx/

zpp的博客 7053

C# WinForm 基于DirectShow.dll编写的程序,可边预览边保存视频,音频和图片

基于微软的DirectShow.dll的二次开发1.自动识别连接的摄像头跟麦克风且可以对其进行选择(默认选中第一个)2.可录制wmv和avi两种格式的视频并且都带有音频,avi可以录制的分辨率和帧数进行选择,wmv默认进行了淸晰度优化如不喜欢可去除代码中有相关提示3.可在预览点开之后进行拍照,也可边录制视频边拍照4.添加了视频和音频的压缩功能(酌情使用)这次二次开发发现C#对DirectShow的相关信息太少,这次做完也不敢藏私共享出来,还望大家指正

Data-Structures-and-Algorithm-Analysis-in-Java.pdf

作者: Weiss, Mark A. 出版社: Addison Wesley Data Structures and Algorithm Analysis in Java is an “advanced algorithms” book that fits between traditional CS2 and Algorithms Analysis courses. In the old ACM Curriculum Guidelines, this course was known as CS7. This text is for readers who want to learn good programming and algorithm analysis skills simultaneously so that they can develop such programs with the maximum amo...

Python学习报错Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl c

根本原因:SSL报错,梯子没关(也不知道为啥,关了就解决了)新建了一个虚拟环境,想安装包失败,之前明明可以,报错如下。

qq_58576765的博客 2664

如何解决报错:Could not fetch URL https://pypi.org/simple/httpx/: There was a problem confirming the ssl ce

相信大家python安装requests、httpx等包的时候可能出现这种情况这个时候你就会发现不管怎么变化镜像、怎么输出pip指令结果都是一样的,而作为程序员的我们要知道有时候出现问题的时候真正的问题鬓没有出现在问题本身而是在别的地方。这是我们要大方向的去检查错误把这个关了之后再回到pycham终端去正常的安装就好(因为我的requests已经安装好了 这里就用htppx作为实例 requests的安装和这个基本一样)接下来就是成果展示

m0_62685431的博客 2534
上一篇: 样本轮廓系数(原理、sklearn.metrics.silhouette_score、silhouette_samples参数介绍)
下一篇: 性能指标:精确度(Accuary) 查准率(Precision) 查全率(Recall) F1_score
鲨鱼辣椒不吃辣c
博客等级 码龄8年 1万+粉丝 93原创
评论 15
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址