在user目录中创建pip目录,如:C:\Users\xx\pip,然后新建文件pip.ini,内容如下:


[global]
timeout = 6000

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

trusted-host = mirrors.aliyun.com