Python 2.7 2.6 Install PIP under co-existence

Source: Internet
Author: User

Some Linux versions use the python2.6 version, the two actual programs are python2.7, so python2.7 install and soft Connect, making the default Python version 2.7.

Pip is a good package management tool for Python's third-party installation library, and Pip is already installed by default on python2.7.9.

Use get-pip.py (Install script to install all the dependencies required for PIP installation)

1. Download the file first
wget https://bootstrap.pypa.io/get-pip.py
2. Run the script
Python get-pip.py
3. Review the PIP installation path and enter the following command

Import Sys
Print Sys.path

From the above view, pip file is placed under the/usr/local/bin/pip file

4. Modify the software connection using the PIP path above

Ln-s/usr/local/bin/pip/usr/bin/pip

5. Command line input PIP if the usage information of PIP appears, the installation is successful.


Python 2.7 2.6 Install PIP under co-existence

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.