A good practice for this is installing another version of Python side by side with the system provided one, python on CentOS (and most Linux distros) is very heavily tied with the operating system, upgrading the system one to a new version is not recommendable.
The best way to do it is via SSH.
Download the latest python version or use Yum (or yum search for specific packages). After that add the new version of python to PATH if necessary, and configure the application to use that path (of the newly installed python).
Here how you can download python and install it:
A good practice for this is installing another version of Python side by side with the system provided one, python on CentOS (and most Linux distros) is very heavily tied with the operating system, upgrading the system one to a new version is not recommendable.
I normally add a new python repo and point my program to use that version of python instead, there's an amazing guide for installing python side by side (you'll need shell access for this), check it out here http://www.question-defense.com/2009/12/25/how-to-install-python-2-6-on-centos-5-without-breaking-yum
If you use CentOS, yum provide update python. You can update Python to >= 2.5 at your own risk.
I recommendation install new version Python in /opt.
The best way to do it is via SSH. Download the latest python version or use Yum (or yum search for specific packages). After that add the new version of python to PATH if necessary, and configure the application to use that path (of the newly installed python). Here how you can download python and install it: