Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6725135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:46:16+00:00 2026-05-26T09:46:16+00:00

i have to install mysqldb module of python in my centos server. i have

  • 0

i have to install mysqldb module of python in my centos server. i have 2 versions of python

  1. 2.4.3 the default one
  2. 2.6 which i installed

i want to install mysqldb module for 2.6 version of the python.
i installed it from here but when i am on the line

python2.6 setup.py install

it says

Traceback (most recent call last):
File "setup.py", line 5, in <module>
from setuptools import setup, Extension
ImportError: No module named setuptools

so i went for installing setup tools from here.using the command

setuptools-0.6c11-py2.6.egg

because i installed 2.6 python so i installed this rpm. but when i execute this command it says

Traceback (most recent call last):
File "<string>", line 1, in <module>
zipimport.ZipImportError: can't decompress data; zlib not available

but when i did locate command i do find the package and rpm installed for zlib.

/usr/share/doc/zlib-1.2.3
/usr/share/doc/zlib-1.2.3/README
/var/cache/yum/base/packages/zlib-devel-1.2.3-4.el5.x86_64.rpm

can any one please help me in this. I exactly want to install mysqldb module for python 2.6 i installed on my

/usr/local/bin/

directory.

any help or idea will be highly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T09:46:17+00:00Added an answer on May 26, 2026 at 9:46 am

    When you installed Python 2.6, you most likely didn’t have zlib-devel installed, so your Python doesn’t have that feature built in. I recommend that you install

    readline-devel
    sqlite-devel
    zlib-devel
    openssl-devel
    

    before compiling your own Python. After installing the newly compiled Python, fetch the setuptools source package and install it with:

    python2.6 setup.py install
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I installed python-mysqldb using sudo apt-get install python-mysqldb I have tried to use it
I have a Delphi component which I want to install and have it available
I have installed mySQL using sudo apt-get install mySQL-server then i have installed libmysqlclient15-dev
I been working on finding out how to install MySQLdb module for Python on
I have been running python from a brew install. I went to install the
I have an install of python 2.5 that fink placed in /sw/bin/. I use
I have gdata library install on my ArchLinux, and a simple application which imports
We have a WP install in the root of our server and its running
I have install the C/C++ CDT Version of Eclipse. After making a HelloWorld.c file
I am a .NET developer trying to install mysqldb for python I keep having

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.