-
Find a user directory
C:\Users\用户\pip
, if there is no new that folder. -
New File pip.ini, and enter the following in a text editor and save
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
- Open cmd enter
pip install 库名
, you can see the source has been switched Ali cloud compared to the default source download speed increase a lot.