Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I searched under CentOS and couldn't find it.

But python-libs 2.4.3-46.el5_8.2 is already installed on my server

share|improve this question
Really? CentOS 5.0? Not 5.1, 5.4, 5.8? – ewwhite Sep 21 '12 at 12:36

3 Answers 3

# yum provides *libpython2.6*
python26-libs-2.6.8-1.el5.x86_64 : The libraries for python runtime
Repo        : epel
Matched from:
Filename    : /usr/lib64/
Other       :
share|improve this answer

I also couldn't find it. But, you can always compile it yourself.

tar xzf Python-2.6.7.tgz
./configure --prefix=/opt/python2.6 --with-threads --enable-shared --with-zlib=/usr/include
make && make install

sudo ln -s /opt/python2.6/lib/ /usr/lib
sudo ln -s /opt/python2.6/lib/ /usr/lib
sudo /sbin/ldconfig -v
sudo ln -s /opt/python2.6/bin/python /usr/local/python

You can now check the version with python -V.

You also might want to check if yum is still working, because that's usually the first to go when you start playing with python versions.

The above lines come from an install script I use and assume you build everything in /opt

share|improve this answer

If you really need Python 2.6 on your old CentOS 5 box, you can use the python26 packages provided by EPEL.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.