修改pip阿里镜像

默认的pip镜像文件为国外的,下载经常提示超时,建议跟换为国内的镜像,清华、豆瓣和阿里等都不错的。

Windows:在user下新建文件夹【pip】,在该文件夹下新建文件名为【pip.ini】

Linux:.pip/pip.conf

文件输入以下内容:

[global]

trusted-host = mirrors.aliyun.com

index-url = https://mirrors.aliyun.com/pypi/simple

看下下载速度:

原文地址:https://www.cnblogs.com/ygod323/p/12918349.html