First, modify the PIP mirror source in a Windows environment (for example, python3.5)
(1): In Windows File Manager, enter %appdata%
(2): Will navigate to a new directory, under the directory new PIP folder, and then go to the PIP folder to create a new Pip.ini file
(3): In the new Pip.ini file, enter the following content, to fix
[Global]
Timeout = 6000
index-url = http://pypi.douban.com/simple
trusted-host = pypi.douban.com
Ii. How to update the PIP source in a Linux system (for example, centos,python2.7)
The changes in the Linux environment are basically the same as those in the Windows environment, and here's a quick summary:
(1): Create a folder named. Pip under the user's home directory
(2): Create a file named Pip.conf in the created. Pip folder
(3): Enter the following in the pip.conf file, OK!!!
[Global]
Timeout = 6000
index-url = http://pypi.douban.com/simple
trusted-host = pypi.douban.com
Summarize
The above is the entire content of this article, I hope this article provides this method for everyone's study or work can bring some help, if you have questions you can message exchange.