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/
相关推荐
jiayi_19991 天前
Linux 容器安装 conda 和 pip
linux·conda·pip
Jc.MJ5 天前
安装Pytorch GPU+CPU版本【通过本地安装解决无法使用pip指令下载问题】
人工智能·pytorch·pip
想名字好难啊竟然不止我一个6 天前
清除 Pip 缓存, 释放磁盘空间
python·缓存·pip
懒惰蜗牛9 天前
Day10:Python实现Excel自动汇总
python·numpy·pandas·pip·1024程序员节·python读写excel
蓝纹绿茶11 天前
bash:**:pip:***python: 错误的解释器: 没有那个文件或目录
开发语言·python·pip
Nie_Xun14 天前
conda常用命令&pip、venv
conda·pip
万粉变现经纪人14 天前
如何解决 pip install -r requirements.txt 子目录可编辑安装缺少 pyproject.toml 问题
开发语言·python·scrapy·beautifulsoup·scikit-learn·matplotlib·pip
万粉变现经纪人15 天前
如何解决 pip install -r requirements.txt 私有索引未设为 trusted-host 导致拒绝 问题
开发语言·python·scrapy·flask·beautifulsoup·pandas·pip
万粉变现经纪人15 天前
如何解决 pip install -r requirements.txt 私有仓库认证失败 401 Unauthorized 问题
开发语言·python·scrapy·flask·beautifulsoup·pandas·pip
kobe_OKOK_16 天前
windows 下载 pip包,debian离线安装
windows·debian·pip