一、windows环境下修改pip镜像源的方法
1.在windows文件管理器中,输入 %APPDATA%,回车。
2.定位到的新的目录下,在该目录下新建pip文件夹,然后到pip文件夹里面新建个 pip.ini。(建个txt文件,输入内容之后,修改后缀即可)
3.在新建的pip.ini文件中输入以下内容
[global]
timeout = 6000
index-url = http://pypi.douban.com/simple
trusted-host = pypi.douban.com
二、在linux系统中更新pip源的方式
1.在用户的家目录下面创建名为 .pip文件夹
2.在创建好的 .pip文件夹中创建名为 pip.conf的文件
3.在pip.conf文件中输入以下内容。
[global]
timeout = 6000
index-url = http://pypi.douban.com/simple
trusted-host = pypi.douban.com
注意:新版ubuntu要求使用https源。
三、其他镜像源地址
(1)阿里云 http://mirrors.aliyun.com/pypi/simple/
(2)豆瓣http://pypi.douban.com/simple/
(3)清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
(4)中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
(5)华中科技大学h