Linux Upgrade python2.7

Source: Internet
Author: User

Linux Yum relies on its own python, to prevent errors, the update here is actually to install a python.

View the default Python version python-v  1, install GCC, to compile the Python source    yum install GCC2, download the source package, HTTPS://WWW.PYTHON.ORG/FTP/PYTHON/3, Unzip and enter the source file 4, compile and install    ./configure make    install5, view version    /usr/local/bin/python2.7-v6, modify default Python version    mv/usr/bin/python/usr/bin/python2.6    ln-s/usr/local/bin/python2.7/usr/bin/python7, prevents Yum from performing exceptions, Modify the Python version Vi/usr/bin/yum used by Yum to    change the head #!/usr/bin/python to #!/usr/bin/python2.6

Reference: http://www.cnblogs.com/wupeiqi/articles/5433925.html

Linux Upgrade python2.7

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.