sandeep.m 0 Newbie Poster

Hi,
I have installed "MySQL-python-1.2.2" in my CentOS 5.3 server using "python setup.py install" command. It is giving me the error as :

Traceback (most recent call last):
File "setup.py", line 5, in <module>
import ez_setup; ez_setup.use_setuptools()
File "/home/installars/MySQL-python-1.2.2/ez_setup.py", line 85, in use_setuptools
import setuptools; setuptools.bootstrap_install_from = egg
zipimport.ZipImportError: can't decompress data; zlib not available

I tried installing zlib-1.2.3.tar.gz but still i am not able to install "MySQL".Please tell me how can i install it successfully.

And is it must for "Mysql -python egg file" to get added into site-packages folder of python after installation to run it properly.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.