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

Source: Internet
Author: User

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

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.

Related Article

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.