1.找到位于C盘的AppData文件夹,在管理员文件夹中,如

2.进入Roaming文件夹,新建一个pip空文件夹

3.新建pip.ini文件,编辑此文件,内容如下
[global]
index-url = https://pypi.doubanio.com/simple
[install]
trusted-host = pypi.doubanio.com

——————————————————————————————————————————
4.国内的其他源:
阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣 http://pypi.douban.com/simple
Python官方 https://pypi.python.org/simple/
v2ex http://pypi.v2ex.com/simple/
中国科学院 http://pypi.mirrors.opencas.cn/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
——————————————————————————————————————————
以上内容就是windows切换成国内的镜像源配置步骤了,现在快去试试下载吧,飞一样的感觉~
网友评论