Upgrade Python and install Pip under Linux

Source: Internet
Author: User

Linux Version Upgrade:

1. First confirm that the Python version that comes with the Linux operating system is the same as the version you need

All Python versions are selected for download at https://www.python.org/ftp/python/

2, wget https://www.python.org/ftp/python/2.7.11/Python-2.7.11.tgz to download

3. Decompression

TAR-ZXVF python-2.7.11.tgz

Enter the Python-2.7.11 directory input./configure

Make

Make install

4. Whether to view the Python version or the system default version at this time

Execution: mv/usr/bin/python/usr/bin/python2.6

Ln-s/usr/local/bin/python2.7/usr/bin/python

Review the version that has been updated to the one you want to install again

PIP Installation

1. A get-pip.py is provided in Python; here's the address.

https://bootstrap.pypa.io/get-pip.py

2. Perform Curl https://bootstrap.pypa.io/get-pip.py under Linux | Python for download and installation

It's so convenient to pack whatever bag you want.

Pip Install XXX

Upgrade Python and install Pip under Linux

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.