CentOS6.6 upgrade python

Source: Internet
Author: User
Requirement: upgrade python2.6.6 to python2.7.9wgthttps: // upgrade

Requirement: upgrade python 2.6.6 to python 2.7.9

  1. Wgt https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tg

  2. Tar xf Python-2.7.9.tgz

  3. Cd Python-2.7.9

  4. ./Configure
    Make all
    Make install
    Make clean
    Make distclean

  5. Check whether the current version is python 2.6.6 after you install python-V.

  6. Mv/usr/bin/python/usr/bin/python2.6.6

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

    View python 2.7.9

  8. In this case, yum cannot be used normally and needs to be adjusted.

    Vim/usr/bin/yum

    Place
    #! /Usr/bin/python
    Change
    #! /Usr/bin/python2.6.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.