解决pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool

pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host=‘mirrors.cloud.aliyuncs.com 这个错误 pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='mirrors.cloud.aliyuncs.com', port=80): Read timed out. 表示在使用 pip 安装或更新 Python 包时,从指定的源(这里是 mirrors.cloud.aliyuncs.com)下载数据时连接超时了。确保你的 Python 和 pip 配置没有错误,特别是关于源和代理的设置。 阅读详情

解决pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443): Read timed out问题

使用命令安装torch:

pip3 install torch==1.10.0+cu113 torchvision==0.11.1+cu113 torchaudio===0.10.0+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html -i http://mirrors.aliyun.com/pypi/simple/  --trusted-host mirrors.aliyun.com

这时候报错:

pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='download.pytorch.org', port=443): Read timed out.

2.分析问题产生原因


(1)大概率是网络问题,也就是阿里云的镜像源提供的网速不足以支撑2个G的torch安装
(2)也许可能版本不匹配,但这一问题我在官方网站复制的命令:torch安装官网提供的命令,应该是问题不大的。

3.解决办法


切换镜像源:
豆瓣:http://pypi.douban.com/simple/
清华:https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:http://mirrors.aliyun.com/pypi/simple/
山东理工大学:http://pypi.sdutlinux.org/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
华中科技大学:http://pypi.hustunique.com/
因此命令可以改为:
 

pip3 install torch==1.10.0+cu113 torchvision==0.11.1+cu113 torchaudio===0.10.0+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html -i https://pypi.tuna.tsinghua.edu.cn/simple

或者一个一个镜像试过去,总会有效果的!

4.大牛提供的方法

如果你的网速一直很拉闸,上面的方法依然解决不了,那这时可以使用如下的解决方案:

pip --default-timeout=1688 install 库名称 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com 

那在这里可以分别用该方法安装torch和torchvision
也就是使用命令:

pip3 --default-timeout=1688 install torch==1.10.0+cu113 torchvision==0.11.1+cu113 torchaudio===0.10.0+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html -i http://mirrors.aliyun.com/pypi/simple/  --trusted-host mirrors.aliyun.com

这里的--default-timeout=1688其实意思就是让其检测延迟的时间变长,以防止因为你的网络问题而直接报错

pip._vendor.urllib3.exceptions.ReadTimeoutError: 解决方案 pip._vendor.urllib3.exceptions.ReadTimeoutError: 解决方案在Python中,使用pip对第三方库的安装是十分常见的操作。这个错误的意思是pip请求服务器超时,从而导致连接断开。这个错误一般是因为服务器响应速度较慢或者网络不稳定所引起的。 阅读详情

相关推荐

pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=files.pythonhosted.org解决方案

本文主要介绍了pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.解决方案,希望能对新手有所帮助。 1. 问题描述 2. 解决方案 2.1 方案一 2.2 方案二 2.3 方案三...

weixin_43178406的博客 5万+

Torch安装报错pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool解决方法

Torch安装教程

qq_39909808的博客 1万+

【数据集处理】DroneVehicle数据集处理方法

DroneVehicle数据集由无人机采集的56,878张图像组成,其中一半是RGB图像,其余为红外图像。作者为这五个类别制作了带有定向边界框的丰富注释。

qq_44102942的博客 5052

pip._vendor.urllib3.exceptions.ReadTimeoutError错误的解决方法

pip._vendor.urllib3.exceptions.ReadTimeoutError错误 我用cmd在下载Scrapy出现 pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443): Read timed out. 错误原因是你...

CharlesLC的博客 1万+

周立功CAN盒二次开发实录:用QT5.1.0解析汽车CAN报文(附数据可视化技巧)

本文详细介绍了基于QT5.1.0和周立功USBCAN-E-U设备进行汽车CAN总线二次开发的实战过程。核心内容包括利用CANdb++数据库解析原始报文并转换为物理值,以及通过QCustomPlot库实现高性能实时数据可视化,为车载诊断与车联网开发提供了一套完整的工程实践方案。

sugar的博客 1058

Alibaba Java Coding Guidelines,以后我的Java代码规范,就靠它了

前言 对于Java代码规范,业界有统一的标准,不少公司对此都有一定的要求。但是即便如此,庞大的Java使用者由于经验很水平的限制,未必有规范编码的意识,而且即便经验丰富的老Java 程序员也无法做到时刻将规范牢记于心。所以对于代码规范扫描工具,一经问世就广受青睐,阿里巴巴出品的Alibaba Java Coding Guidelines(阿里巴巴Java代码规约扫描,以下简称为AJCG)插件便是其...

java梦工厂 860

Python报错pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool解决方法

在安装第三方库的时候,Python报错pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. 解决方法如下: pip --default-timeout=100 install gevent ...

给我一点温度 9万+

Labview_DQMH框架学习1--浅析

本文主要结合一个相对容易理解的例子,阐述 DQMH 框架的工作原理,希望对初学者有一定的帮助。

hrbeuxn的博客 3053

解决报错pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool

在安装第三方库的时候,Python报错pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. 解决方法: 打开命令行,输入: pip --default-timeout=100 install 库名称 -i http://pypi.douban.com/simple/ --trusted-host pypi.do

强者征服今天,懦夫哀叹昨天,懒汉坐等明天。 1万+

PCL 中实现平面模型分割【2026最新版】

RANSAC分割平面。博客长期更新,最近一次更新时间为:2026年5月4日。

点云侠的博客 38万+

【电容/电感】电路板会“滋滋”的响,我们称它为啸叫

一、啸叫的起源 大部分硬件工程师应该都遇到过,PCBA上电后出现“滋滋滋”的叫声,其声响或大或小,或时有时无,或深沉或刺耳,或变化无常者皆有。该现象我们称为“啸叫”,一般分为电感啸叫和电容啸叫。

云轩阁 6万+

已解决pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool (host=’ files. pythonhosted.

已解决(pip安装第三方模块报错)pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool (host=’ files. pythonhosted.org’, port=443) : Read timed out.

努力让自己发光,对的人才能迎着光而来 2万+

SpringBoot 插件化开发详细总结

SpringBoot 插件化开发方案总结

congge 1万+

【Python】已解决:pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool (host=’ files. pyth

在使用Python的pip工具安装或更新库时,有时会遇到pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool (host=’ files.pythonhosted.org’, port=443): Read timed out.这样的报错。通过上述方法,你应该能够解决pip._vendor.urllib3.exceptions.ReadTimeoutError的问题,并顺利安装或更新你需要的Python包。

屿小夏.的知识博客 6754

6.Burp Suite 入门篇 —— Burp Scanner 漏洞扫描

Burp Scanner 既可以是独立的全自动扫描器,也可以在手动测试中当作强大的辅助手段,而且随着技术改进,Burp Scanner 能检测到的漏洞数量也在不断增加。Burp Scanner 功能只在 burpsuite 专业版和企业版中里有,本篇教程讲的是专业版的 Burp Scanner 用法。

YouTheFreedom的博客 1万+

Camera2Demo

在Camera2 的基础上进行封装,使得Camera2一堆初始化逻辑与Activity分离,降低耦合度,完成预览拍照并保存的操作

异常:pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool...已解决

不必慌张,造成这个问题的原因并不是我们的环境配置有问题,只是“连接超时”而已

Java Punk 1万+

文档:亲测可用解决vnc灰屏,黑屏,鼠标大黑叉情况

主要解决vnc-viewer灰屏,黑屏,鼠标大黑叉等现象,详细见文档。

解决超时问题pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool

@[TOC](pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443)) 问题: pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443): Read timed out. 解决方法 cm

gusijin的博客 2550

pscad IEEE标准系统搭建说明

pscad IEEE标准系统搭建说明,包含典型的IEEE 9节点、14节点、30节点、39节点和118节点系统。内含标准测试系统的原始数据和潮流结果。

Devexpress16.2.6破解工具

Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具

pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='f 的解决办法

pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='f 的解决办法 引言:当我们在用pip或者pycharm来安装模块的时候,经常会遇到ReadTimeout错误,造成这个问题的原因就是网速问题。我的解决方法有两条,如下: 1.换个网络连接重新下载 可以看到下面在cmd中用pip安装的下载速度为几十K...

hahaxq的博客 11万+

pip安装第三方库报错pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool解决方法

在安装第三方库的时候,Python报错pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443): Read timed out. 解决方法如下: 输入指令: pip --default-timeout=100 install 库名称 -i http://pypi.douban.com/simple/ --trusted-host pypi.doub

qq_40803429的博客 7669

【BUG】已解决:pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool (host=’ files. pythonh

pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool (host=’ files. pythonhosted.

m0_73367097的博客 861

环境安装:pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool解决方案

项目场景:环境安装 问题描述: pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. 出现错误): pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port

DHB1289752316的博客 1307

【Python报错已解决】pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool (host=‘files.pytho

在使用pip安装Python包时,你可能会遇到一个与网络连接超时相关的错误。这个错误通常发生在pip尝试从Python包索引下载包时,但由于网络问题或服务器响应缓慢而超时。下面我们来分析这个问题并提供解决方案。

鸽芷咕的博客 2507
上一篇: 什么是zero-shot, one-shot和few-shot Learning
下一篇: 论文笔记:VQGAN-CLIP:Open Domain Image Generationand Editing with Natural Language Guidance
nocol.
博客等级 码龄7年 587粉丝 67原创
评论 14
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值