美文网首页
解决pip安装软件过程中下载速度特别慢

解决pip安装软件过程中下载速度特别慢

作者: 082e63dc752b | 来源:发表于2021-01-18 12:52 被阅读0次

由于pip主要下载地址为国外的源,因此在安装软件过程中,速度一般在几k到几十k左右,而且经常会出现timeout。因此可以把pip的源更改为国内源,以提高下载速度。

临时解决

比如安装 scrapy,可以这样写
pip install scrapy -i https://pypi.tuna.tsinghua.edu.cn/simple

永久解决

# 直接更新pip的配置文件
pip install pip -U -i https://pypi.tuna.tsinghua.edu.cn/simple
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
#更新完成后就可以直接安装其他软件了。

相关文章

网友评论

      本文标题:解决pip安装软件过程中下载速度特别慢

      本文链接:https://www.haomeiwen.com/subject/estxzktx.html