Change the image of the PIP installation source to resolve the installation always timeout condition

Source: Internet
Author: User

Because the foreign PIP source is always due to various reasons can not be accessed or slow speed, and caused by timeout error

The workaround is to modify the PIP profile (if no configuration file is created in the appropriate location, the path and name of the profile is referenced here), set the image to be accessed by the installation package, and change it to a domestic mirror

Then set the timeout to a bit longer

For example, the configuration file settings are as follows:

[Global]
Timeout = 60
Index-url = Http://pypi.douban.com/simple

[Install]
Use-mirrors = True
Mirrors = http://pypi.douban.com

How to confirm that you have successfully modified the source image used in PIP installation package, as long as the use of the PIP command to see the download speed is obvious.

Reference:

https://segmentfault.com/q/1010000000162410

Change the image of the PIP installation source to resolve the installation always timeout condition

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.