I don't know if anyone is confused by the system update source issue when I first came into contact with Linux. different Linux update source configurations are also different, in addition, because the source during default installation is mostly foreign update sources, the speed will be much slower than that in China. Next, this article mainly introduces how to update the system source in windows and linux system environments.
1. how to modify pip Image source in windows (using python3.5 as an example)
(1): In windows file manager, enter% APPDATA %
(2): locates in a new directory, creates a new pip folder under the Directory, and then creates a new pip. ini file in the pip folder.
(3): Enter the following content in the new pip. ini file.
[global]timeout = 6000index-url = http://pypi.douban.com/simpletrusted-host = pypi.douban.com
II. update pip source in linux (take centos and python2.7 as an example)
In linux, the modification method is basically the same as in windows. here is a brief summary:
(1): create a. pip folder under the user's home directory.
(2): create a file named pip. conf in the created. pip folder.
(3): Enter the following content in the pip. conf file. OK !!!
[global]timeout = 6000index-url = http://pypi.douban.com/simpletrusted-host = pypi.douban.com
Summary
The above is all about this article. I hope this method will help you in your study or work. if you have any questions, please leave a message.