我们都经常用pip来安装各种 package ,但是每次在pycharm安装老是很慢,而且有些时候还报错(因为网速太慢),查完资料后得知,要更改下载源,这里修改成为阿里的源:
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple
这里再推荐其他的几个下载源:
清华:
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple/
中科大:
pip config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple/
接着再去下载 package 就很快了!!!