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

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to install Python 2.7.3 + setuptools on my Centos 5.8.

First i download sources, unzip then ./configure && make && make install.

sh setuptools-0.6c11-py2.7.egg

i get error

zipimport.ZipImportError: can't decompress data; zlib not available

and nothing helps.

whereis zlib
zlib: /usr/lib/ /usr/lib/zlib.h /usr/include/zlib.h /usr/share/man/man3/zlib.3.gz
share|improve this question

If you do an "rpm -qa | grep zlib" what all do you get? It could be a matter of having to

yum install zlib zlib-devel zlib-static 

This will ensure you have all of the packages you need. If you have all of those, you may need to symlink where your current version of zlib and it's libraries are to where Python is looking for them. Or specify in the Python setup where your zlib files are.

Disclaimer: I haven't installed Python 2.7.3 specifically but that's normally the issue with those types of errors in my experience.

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.