How to install MySQLdb package? (ImportError: No module named setuptools)

Posted by Verrtex on Stack Overflow See other posts from Stack Overflow or by Verrtex
Published on 2009-09-19T18:07:44Z Indexed on 2010/06/08 12:52 UTC
Read the original article Hit count: 287

Filed under:
|
|
|

Hi All,

I am trying to install MySQLdb package. I found the source code here.

I did the following:

gunzip MySQL-python-1.2.3c1.tar.gz
tar xvf MySQL-python-1.2.3c1.tar
cd MySQL-python-1.2.3c1
python setup.py build

As the result I got the following:

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

Does anybody knows how to solve this problem? By the way, if I am able to do the described step, I will need to do the following:

sudo python setup.py install

And I have no system-administrator-rights. Do I still have a chance to install MySQLdb?

Thank you.

© Stack Overflow or respective owner

Related posts about python

Related posts about mysql