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/
相关推荐
淮北4941 天前
pip虚拟环境包的问题
开发语言·python·pip
Albert Edison1 天前
【Python】函数
java·linux·python·pip
不懒不懒1 天前
【机器学习:下采样 VS 过采样——逻辑回归在信用卡欺诈检测中的实践】
python·numpy·scikit-learn·matplotlib·pip·futurewarning
规划酱3 天前
Arcgis中pip安装ezdxf部分GIS有pyparsing安装失败的情况处理
python·arcgis·pip·规划酱
凉忆-3 天前
llama-factory训练大模型
python·pip·llama
肆意飞扬3 天前
Python篇:使用conda、pip的一些命令记录
python·conda·pip
Warren984 天前
Pytest Fixture 作用域详解:Function、Class、Module、Session 怎么选
面试·职场和发展·单元测试·pytest·pip·模块测试·jira
Java后端的Ai之路8 天前
【Python小知识】-pip install xxx 命令安装的 ,在电脑的哪个盘?
开发语言·python·pip·pip install
gsgbgxp9 天前
安装库是优先用conda还是pip
深度学习·ubuntu·conda·pip
玄同76510 天前
深入理解 SQLAlchemy 的 relationship:让 ORM 关联像 Python 对象一样简单
人工智能·python·sql·conda·fastapi·pip·sqlalchemy