创建文件:

C:\Users\thinkpad\pip\pip.ini

内容如下:

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

[install]
trusted-host=mirrors.aliyun.com

pypi源:

https://developer.aliyun.com/mirror/pypi