Python pip Install

Source: Internet
Author: User

Windows:

To install Python first, make sure to add the python.exe below the Python installation directory to the environment variable. Click on the environment variable, click Path, and then click OK with our Python installation path.

1). Install Easy_install First

: Https://pypi.python.org/pypi/ez_setup

Unzip, install. Will add Easy_install.exe and several exe files under D:\Python2.7.8\Scripts. The CD is executed under this directory:

Python ez_setup.py

The installation is successful Easy_install

2). Install Easy_install before installing PIP.

CD index to the place where Easy_install.exe is located, execute the instruction "Easy_install.exe pip" to install PIP.

or download the installation package directly to install:

: Https://pypi.python.org/pypi/pip

Unzip, install.

Python setup.py Install

PS: After installation, we enter PIP directly on the command line, and if the display ' Pip ' is not an internal command, you need to add an environment variable for it.

Another: After installing the PIP and Easy_installer tools, it is convenient to install the other Python libraries later

For example:
Easy_install Redis

Or

Pip install Redis (recommended)

Linux:

Linux default installed Python.

$pip

If PIP is not installed

$sudo Apt-get Install Python-pip

Python pip Install

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.