Centos – Upgrading Python from 2.4 to 2.5+ on CentOS

centospythonupdate

I tried

yum update python

and

yum upgrade python

both came up with results with endline: "No Packages marked for Update"

I currently have

Python 2.4.3 (#1, Sep  3 2009, 15:37:37)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2

Apparently, the latest version of python is 3.x already … what's the best way to upgrade?

Best Answer

Well, the short of it is that you can't (or at least shouldn't). A lot of CentOS (And RHEL) internal programs (including yum) depend upon 2.4...

However, you can install 2.6 from the epel repository. The package is named python26, and the command is either python26 or python2.6 instead of python... Note, don't change the python command to point to python26 for the above reason...

Related Topic