CentOS python2.6 Upgrade to 2.7

Source: Internet
Author: User

View Python version
#python  -V    2.6.  6  
1. Download Python-2.7.3
#wget http://python.org/ftp/python/2.7.3/python-2.7.3.tar.bz2  
2. Unzip
#tar-JXVF python-2.7. 3 . tar.bz2  #cd Python-2.7. 3  
3. Installation
#./Configure  #make all             #make install  #make clean  #make distclean  
4. View version Information
#/usr/local/bin/python2. 7
5. Establish a soft connection so that the system default Python points to python2.7
#mv/usr/bin/python/usr/bin/python2. 6.6    -s/usr/local/bin/python2. 7
6. Re-test Python version 7. Change the Yum profile header

After the system Python soft links point to the Python2.7 version, because Yum is not compatible with Python 2.7, Yum does not work properly and we need to specify the Python version of Yum

#vi/usr/bin/Yum changes the  file header's #!/usr/bin/python to #!/usr/bin/python2.  6.6

8. Input method is gone, configure the IBUs

Use VI to open the following two files, find the Exec Python line, the exec python changed to exec python2.6 save, exit. The IBUs is back to normal after a reboot!

#vi/usr/bin/ibus-setup  #vi/USR/LIBEXEC/IBUS-UI-GTK  

Reprinted from: http://blog.csdn.net/jcjc918/article/details/11022345

CentOS python2.6 upgrade to 2.7

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.