Methods for permanently modifying the PIP mirror Source in Windows and Linux environments _python

Source: Internet
Author: User

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.

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.