Python package manager pip installation

Source: Internet
Author: User
Python package manager pip installation pip is no stranger to friends who use python. when you want to install the python module, you will first think of it. Pip is a tool for installing and managing Python packages. it is a replacement of easy_install.

Let's talk about the pip installation method today.

Method 1: script installation

$ Wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py$ [sudo] python get-pip.py

Method 2: install with source code:

$ Curl-O https://pypi.python.org/packages/source/p/pip/pip-x.tar.gz$ tar xvfz pip-X.X.tar.gz $ cd pip-X.X $ python setup. py install

However, an error may occur during the installation process:

An error occurred while trying to run get-pip.py. Make sure you have setuptools or distribute installed.


This error indicates that setuptools must be installed first.


Setuptools installation:

Wget-q http://peak.telecommunity.com/dist/ez_setup.pypython ez_setup.py

After setuptools is installed, you can install the source code again.

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.