当前位置:网站首页>pip命令安装工具包时出现ReadTimeoutError或者THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE问题解决
pip命令安装工具包时出现ReadTimeoutError或者THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE问题解决
2022-08-06 05:26:00 【HIT_Vanni】
问题描述:raise ReadTimeoutError(self._pool, None, ‘Read timed out.’)
ReadTimeoutError: HTTPSConnectionPool(host=‘pypi.tuna.tsinghua.edu.cn’, port=443): Read timed out.
THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
问题原因:网速原因,连接源时出现问题
更换pip源即可解决
国内源:
清华:https://pypi.tuna.tsinghua.edu.cn/simple/
阿里云:https://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学:https://pypi.hustunique.com/
山东理工大学:https://pypi.sdutlinux.org/
豆瓣:https://pypi.douban.com/simple/
博主亲测豆瓣源最快,根据自身情况自行选择
ubuntu进入home目录下
ctrl + h 快捷键显示隐藏文件,看是否有无 .pip文件夹,有则打开该文件夹,无则创建;
在该文件夹下,打开终端,输入以下命令创建一个pip.conf 文件
gedit pip.conf
文件内容下,以下为豆瓣源,如需其他源自行修改https://pypi.douban.com/simple/为其他源
[global]
timeout = 6000
index-url = https://pypi.douban.com/simple/
[install]
use-mirrors = true
mirrors = https://pypi.douban.com/simple/
trusted-host = pypi.douban.com
单次使用可采用以下命令
pip install -i https://pypi.douban.com/simple/ 工具包名称
边栏推荐
- C语言常用的宏定义
- After the Xiaomi AX3600 router is expanded and flashed OpenWrt, how to flash back to the official system and partition
- 详解使用可道云Kodbox快速在云服务器上搭建云盘
- R语言基础(数据类型,运算符,数据整理,管道操作)
- 在这个数字化的时代,如何做好用户体验与应用性能管理
- ECCV 2022 Oral | 满分文章!视频实例分割新SOTA:SeqFormer & IDOL
- 动态规划之跳跃游戏
- 一起了解分层架构&SOA架构
- LVS load balancing server construction
- 路由器的工作原理
猜你喜欢

MySql data table structure optimization summary

SSH service details

获取arcgis server 发布的mapserver图例

无需拆机,Kindle 全系列 5.12.2.2 ~ 5.14.2版本如何越狱?如何安装第三方插件

旷视提出PETRv2:统一的多摄像头3D感知框架

零基础搭建自己的饥荒Don‘t Starve服务器,摆脱联机卡顿和小伙伴快乐联机

QT自定义安装包

Distributed, Microservices, Cluster Concepts and Differences

what is an API

Object storage layout, how objects are positioned, how objects are allocated
随机推荐
arcpy将本地shape发布成arcgis server 的mapserver
判断某一天是当年的第几天,计算油耗情况,设s=1*2*3*4*5*……*n,求s不大于400000时最大的n。拆分数字,素数,将三个整数按从小到大排序,回文数,判断三个边长能否组成三角形。判断水仙花数
Talk预告 | 德国马普所修宇亮:如何多快好省地重建三维数字人
R语言处理时间序列数据
为什么穷人难翻身?
How to jailbreak the Kindle series 5.12.2.2 ~ 5.14.2 without disassembly?How to install third-party plugins
R语言实现空间对象可视化--以郑州市为例
Path、Files方法
LVS introduces keepalived automatic switching mechanism
卷积神经网络笔记
Deep Learning Gesture Classification Based on Myoelectric Signals (sEMG)-2
TCP protocol to understand and use four times and three times handshake
十、 一起学习Lua 数组
geoserver 发布 矢量切片(pbf)并用openlayers 6.14 /leaflet 1.8 加载展示 (二)(小白必备:超详细教程)
CVPR 2022 | SharpContour:一种基于轮廓变形 实现高效准确实例分割的边缘细化方法
在这个数字化的时代,如何做好用户体验与应用性能管理
旷视提出PETRv2:统一的多摄像头3D感知框架
Why is it difficult for the poor to turn over?
ELK日志分析系统(一)之ELK原理
C语言位段