CentOS 5.x comes with python 2.4 preinstalled. I'd like to use a newer version, but I don't want to break anything.
How should I install a newer version without causing problems?
How can I force mod_python to use newer python, instead of 2.4 ?
CentOS 5.x comes with python 2.4 preinstalled. I'd like to use a newer version, but I don't want to break anything.
How should I install a newer version without causing problems?
How can I force mod_python to use newer python, instead of 2.4 ?
Python 2.6 is available via EPEL. To enable EPEL for your box, just do a:
rpm -ivh http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Then, to install Python 2.6:
yum install python26
there is also a mod_python from there too:
yum install python26-mod_python
To find additional packages: yum search python26
You can compile python2.x with another user (i use py26 as username) by
wget http://www.python.org/ftp/python/2.6.7/Python-2.6.7.tgz
tar xzvf Python-2.6.7.tgz
cd Python-2.6.7
./configure --prefix=$HOME/python
make
make install
then add $HOME/python/bin
to $PATH
, so python2.6 only used by py26 user