在用户目录下新建pip文件夹(注意一定是文件夹)
文件夹里面新建一个pip.ini文件
pip.ini文件内容如下:直接复制粘贴,此处用的是清华的镜像,还有其他的几个也可以
[global]
index-url = 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/
中国科学技术大学