After the SSH terminal logs in to the CentOS system, view the Python version number: Python-v
Cenots6.4 The default installation is 2.6.6, to update the upgrade needs to be installed under Gcc:yum-y install GCC system will download automatically install gcc download python 3.3.3 extract python 3.3.3tar-xzf Python-3.3.3.tar.gz Enter directory: cd Python-3.3.3 installation python./configuremake allmake installmake cleanmake Distclean can be installed, View Python version number: Python-v If the installation is normal, it will echo: Python 3.3.3 Establish a soft connection, let the system default Python use the new version, Mv/usr/bin/python/usr/bin/python2.6ln-s/usr/ Local/bin/python3.3/usr/bin/python Verify that Python points to success: Python-v The default Python point to 3.3.3, Yum does not work properly, and you need to edit the following yum configuration file: Vi/usr/bin /yum Change the #!/usr/bin/python of the file head to #!/usr/bin/python2.6 save the lower version of CentOS to be changed to #!/usr/bin/python2.4
Centos 6.4 Upgrade Python 2.6.6 to Python 3.3.3