Change pip source in windows

Background:

Sometimes the connection to pip origin source is extremely slow.But in you country,many optional mirrors site may speed up the pip install process.

How to:

  1. goto C:\Users\[you username]\AppData\Roaming
  2. if not exist “pip” folder , create it
  3. create pip.ini file in “pip” folder
  4. copy the follow code in pip.ini
[global]
timeout = 6000  
index-url = https://pypi.douban.com/simple
trusted-host = pypi.douban.com