在win10设置镜像源
创建pip目录
C:\Users\用户名\AppData\Roaming\pip
创建pip.ini
文件
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
其他的镜像源:
阿里云 http://mirrors.aliyun.com/pypi/simple/
豆瓣 http://pypi.douban.com/simple
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
在linux下设置镜像源
创建pip.conf
文件(使用root用户)
mkdir ~/.pip/pip.conf
[global]
index-url = http://mirrors.aliyun.com/pypi/simple
在pycharm下设置国内镜像源