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/
相关推荐
HAPPY酷4 天前
Flutter 开发环境搭建全流程
android·python·flutter·adb·pip
万粉变现经纪人5 天前
如何解决 pip install 编译报错 ‘cl.exe’ not found(缺少 VS C++ 工具集)问题
开发语言·c++·人工智能·python·pycharm·bug·pip
爱吃面条的猿7 天前
Python修改pip install 指定安装包的路径和默认镜像源
linux·python·pip
中科院提名者7 天前
Conda与Pip混用导致的“幽灵包”现象
conda·pip
九河_11 天前
解决pip install gym==0.19.0安装失败问题
开发语言·python·pip·gym
小oo呆12 天前
【学习心得】conda打包进行环境迁移遇到conda包和pip包管理冲突问题
conda·pip
万粉变现经纪人21 天前
如何解决 pip install 安装报错 [WinError 32] 文件被占用(杀毒/占用进程)问题
python·pycharm·flask·beautifulsoup·bug·pandas·pip
PKNLP21 天前
11.大模型Agent应用
python·agent·pip
jiayi_199925 天前
Linux 容器安装 conda 和 pip
linux·conda·pip
Jc.MJ1 个月前
安装Pytorch GPU+CPU版本【通过本地安装解决无法使用pip指令下载问题】
人工智能·pytorch·pip