Python not importing mysqldb

Christian Heimes lists at cheimes.de
Fri Apr 24 22:23:57 CEST 2009


83nini schrieb:
> 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 http://sourceforge.net/projects/mysql-python
> 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

You have to compile the MySQL C extension first. It's not sufficient to
just copy the files.

Christian




More information about the Python-list mailing list