Install Python on the centos6.6

Source: Internet
Author: User

The Python version of the CentOS system comes with 2.6, in order to experience the latest version of 2.7.8 (except for the Python3 series), the original version of Python has to be upgraded.

The first is to download python2.7.8

wget https://www.python.org/ftp/python/2.7.8/Python-2.7.8.tgz

Unzip:

Tar zxvf python-2.7.8.tgz

Go to Python's uncompressed folder:

CD Python-2.7.8

To read a configuration file:

./configure

Compile:
Make

Installation:
Make install

The installation is complete.

To view the installed version:

Python-v

The display version is python2.7.8, indicating that the installation was successful. The default version of the system is already pointing to python2.7.8.

Install Python on the centos6.6

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.