first, the method of modifying the PIP image source in the Windows environment (take python3.5 as an example)
(1): In Windows File Manager, enter %appdata%
(2): Will navigate to a new directory, create a new PIP folder in that directory, and then go to the PIP folder to create a new Pip.ini file
(3): In the new Pip.ini file, enter the following
[global]timeout = 6000index-url = Http://pypi.douban.com/simpletrusted-host = pypi.douban.com
Second, the way to update the PIP source in the Linux system (take centos,python2.7 as an example)
In the Linux environment to modify the way and in the Windows environment is basically the same way to modify, here is a brief summary:
(1): Create a folder named. Pip in the user's home directory
(2): Create a file named pip.conf in the Create good. Pip folder
(3): Enter the following in the pip.conf file, OK!!!
[global]timeout = 6000index-url = Http://pypi.douban.com/simpletrusted-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 certain help, if there is doubt you can message exchange.