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/
相关推荐
技术无疆3 天前
【Python】探索Magenta:音乐与艺术的机器智能创作
开发语言·人工智能·python·scikit-learn·pip·pygame·python3.11
Yan-英杰4 天前
Encountered error while trying to install package.> lxml
开发语言·python·pandas·pip·issue
技术无疆4 天前
【Python】Anaconda插件:Sublime Text中的Python开发利器
ide·python·编辑器·pip·pygame·sublime text·python3.11
欧阳枫落6 天前
pip 换源
开发语言·python·pip
无处在7 天前
pip清华源地址
pip
计算机学姐8 天前
基于python+django+vue的在线学习资源推送系统
开发语言·vue.js·python·学习·django·pip·web3.py
BigYouYou9 天前
Pytorch2.4.0自动安装cudnn9.1??? pip安装cudnn方法
pytorch·pip
计算机学姐10 天前
基于python+django+vue+MySQL的酒店推荐系统
开发语言·vue.js·后端·python·mysql·django·pip
计算机学姐11 天前
基于python+django+vue的农业管理系统
开发语言·vue.js·后端·python·django·pip·web3.py
计算机学姐11 天前
基于python+django+vue的视频点播管理系统
vue.js·python·mysql·django·pip·web3.py·ipython