整体切换
pip install package时,很慢,这时候可以切换成国内镜像。
电脑win10安装的是anaconda,可以通过如下方式修改:
在C:\Users\用户名\pip目录下新建文件,如果没有pip文件夹,则新建文件夹。
在该文件夹下新建.ini文件
[global]
index-url=http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
实测速度很快~
Ref
临时切换
pip install pandas -i https://pypi.douban.com/simple
2020-04-17 于南京市栖霞区