pip安装修改镜像源

使用pip安装报错时,例如

raise ReadTimeoutError(self._pool, None, "Read timed out.")

pip._vendor.urllib3.exceptions.ReadTimeoutError:

HTTPSConnectionPool(host='download.pytorch.org', port=443): Read timed

out

可以选择国内的镜像源,如下:

清华源: https://pypi.tuna.tsinghua.edu.cn/simple/

阿里云: http://mirrors.aliyun.com/pypi/simple/

中国科技大学: https://pypi.mirrors.ustc.edu.cn/simple/

豆瓣(douban):http://pypi.douban.com/simple/

清华大学: https://pypi.tuna.tsinghua.edu.cn/simple/

中国科学技术大学: http://pypi.mirrors.ustc.edu.cn/simple/

选用的是清华源

修改为

复制代码
 pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple/
相关推荐
H Journey2 小时前
Python 国内pip install 安装缓慢
python·pip·install 加速
PD我是你的真爱粉2 天前
uv 包管理与传统 pip、conda 的比较:迁移前的工程取舍
conda·pip·uv
Dshuishui3 天前
Locust 压测网站小工具
python·pip
亚林瓜子6 天前
AWS Glue Python Shell任务中pip安装依赖库
python·shell·pip·aws·glue·job
万粉变现经纪人7 天前
如何解决 pip install flash-attention 报错 需要 SM_80+(Ampere)架构 问题
python·架构·django·bug·virtualenv·pip·pygame
键盘鼓手苏苏7 天前
Flutter 三方库 pip 的鸿蒙化适配指南 - 实现标准化的画中画(Picture-in-Picture)模式、支持视频悬浮窗与多任务并行交互
flutter·pip·harmonyos
九河_8 天前
从requirements.txt中安装缺失的包
python·conda·pip·环境管理
ken223210 天前
怎样选择 python 包管理器 pip, uv, conda ?
pip·uv
万粉变现经纪人11 天前
如何解决 pip install tensorflow-gpu 报错 未检测到 CUDA 驱动 问题
人工智能·python·深度学习·aigc·tensorflow·bug·pip
baidu_huihui11 天前
在 CentOS 9 上安装 pip(Python 的包管理工具)
开发语言·python·pip