Centos 6.4 upgrade python to 2.7.3 note the yum version

Source: Internet
Author: User
Tags bz2 centos

Use make altinstall to install python

The code is as follows: Copy code

# Wget http://python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2
# Tar xf Python-2.7.3.tar.bz2
# Cd Python-2.7.3
#./Configure -- prefix =/usr/local
# Make & make altinstall


After the installation is complete, use the soft connection to direct the default python to python2.73

The code is as follows: Copy code
Ln-s/usr/local/bin/python2.7/usr/bin/python

Start yum and use python bin to point to the old version python2.6.

The code is as follows: Copy code
#! /Usr/bin/python = "#! /Usr/bin/python2.6

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.