windows下python自带的pip安装速度过慢解决方案(最详细)

自带下载地址为国外源下载速度时常在20KB以内切换为国内源直接满速!

国内源:

新版ubuntu要求使用https源,要注意。

清华:https://pypi.tuna.tsinghua.edu.cn/simple

阿里云:http://mirrors.aliyun.com/pypi/simple/

中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/

华中理工大学:http://pypi.hustunique.com/

山东理工大学:http://pypi.sdutlinux.org/

豆瓣:http://pypi.douban.com/simple/

windows下在个人用户目录下

c:\users[自己的电脑用户名]\

中新建文件夹 pip,再新建文件pip.ini ( ini后缀为配置文件类型 )

在ini文件中配置源地址

在这里插入图片描述

[global]
 
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
 
[install]
 
trusted-host=mirrors.aliyun.com

在这里插入图片描述
如何创建ini文件?

加粗部分可以自由更换源地址 (这里使用的是清华)

posted @ 2019-09-15 19:04  in_the_wind  阅读(676)  评论(0编辑  收藏  举报