Python not importing mysqldb

83nini 83nini at
Fri Apr 24 22:04:25 CEST 2009

hi guys,

i've been sweating the whole day trying to make python work with mysql
but in vain!
i'm doing the following:
1. visiting
2. dowloading mysql-python-test-1.2.3c1
3. extracting the files to C:\Python26\Lib\site-packages
4. writing "import MySQLdb" in the python prompt


Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python26\lib\site-packages\MySQLdb\", line 19,
in <module>

    import _mysql
ImportError: No module named _mysql

why does it have to be so complicated???? what am i doing wrong for
god's sake?

thanks in advance,

More information about the Python-list mailing list