Python's source is switched to pip domestic Ali cloud images

  1. Find a user directory  C:\Users\用户\pip, if there is no new that folder.

  2. 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 

 

  1. 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.

Guess you like

Origin www.cnblogs.com/feng-hao/p/11276013.html