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/
相关推荐
li99yo3 天前
3DGS的复现
图像处理·pytorch·经验分享·python·3d·conda·pip
Dontla3 天前
用pip install -e .开发Python包时,Python项目目录结构(项目结构)(可编辑安装editable install)
python·pip
今夕资源网3 天前
零基础 Python 环境搭建工具 一键安装 Python 环境自动配置 升级 pip、setuptools、wheel
开发语言·python·pip·环境变量·python环境变量·python自动安装
这个名有人用不5 天前
解决 uv 虚拟环境使用 pip 命令提示command not found的办法
python·pip·uv·claude code
猿界零零七8 天前
pip install mxnet 报错解决方案
python·pip·mxnet
万粉变现经纪人9 天前
如何解决 pip install shapely 报错 GEOS C 库未找到 问题
c语言·开发语言·python·pycharm·bug·pandas·pip
大连好光景10 天前
conda管理包还是pip管理包
python·conda·pip
万粉变现经纪人10 天前
如何解决 pip install cx_Oracle 报错 未找到 Oracle Instant Client 问题
数据库·python·mysql·oracle·pycharm·bug·pip
万粉变现经纪人10 天前
如何解决 pip install pillow-simd 报错 需要 AVX2/特定编译器 支持 问题
python·scrapy·beautifulsoup·aigc·pandas·pillow·pip
YMWM_12 天前
‘pip install -e .‘ and ‘pip install .‘
pip·pip install