How to permanently modify the pip image source in windows and linux

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.