Centos 6.9 comes with Python 2.6.6 switch to 2.7.13 (or later)

Source: Internet
Author: User

Purpose: The system runs Python by default, the system prompts 2.6.6, does not meet the practice environment--cut to 2.7.x
Steps
1:find command to find all Python-related files
#find/name= ' python* '

2. Go to the original 2.6.x python path to see which and 2.6 are relevant.
LS python*-L
3. Delete the 2.6 related Python green files, such as

#mv/usr/bin/python2.6*
4:wget online or offline download Python 2.7.13-> extract

#./configure
#make
#make Install

5. Connect the newly installed 2.7.13 python soft link to python.
Ln-s/usr/local/python27/bin/python2.7/usr/bin/python
6. View version information->python 2.7.13. Done.
#python-V
Ln-s/usr/local/python27/bin/python2.7/usr/bin/python

Reference: Http://www.cnblogs.com/liwei0526vip/p/6219998.html?utm_source=itdadao&utm_medium=referral



Centos 6.9 comes with Python 2.6.6 switch to 2.7.13 (or later)

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.