Easy_install and Pip install Python libraries modify the default source

Source: Internet
Author: User

Domestic Pythoner strongly recommends the use of the pypi source of watercress

Although it is convenient to install third-party libraries with Easy_install and Pip
They are actually downloaded from the official Python source Pypi.python.org/pypi to the local, then unpacked and installed.
But for some reason, access to the official PyPI is erratic, slow, and occasionally inaccessible.

As with Ubuntu's apt and CentOS's yum, there are various image sources like PyPI.

The source of the highly recommended watercress in the country
http://pypi.douban.com/simple/
Note that there are/simple directories to follow.

Using the image source is simple, specifying it with-I is OK:
sudo easy_install-i http://pypi.douban.com/simple/elasticsearch
sudo pip install-i http://pypi.douban.com/simple/elasticsearch

Easy_install and Pip install Python libraries modify the default source

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.