Problems installing MySQLdb on Windows [newbie]

Alex Meier superdoehli_nospam at
Tue Dec 28 23:03:41 CET 2004

hi, all!

this is my first contact with python, I installed python 2.4 (on Win2k) 
and unzipped the MySQLdb package "MySQL-Python 1.0.0 for win32" into 

However, when I try to import the MySQLdb package, I am faced with the 
error message "DLL load failed", in more detail:

>>> import MySQLdb

Traceback (most recent call last):
  File "<pyshell#9>", line 1, in -toplevel-
    import MySQLdb
  File "C:\Programme\Python24\lib\site-packages\MySQLdb\", 
line 27, in -toplevel-
    import _mysql
ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.

The directory structure is (only the relevant parts):

 +-- Lib
      +-- site-packages
            +-- _mysql.pyd
            +-- MySQLdb
                  +-- ...

One thing strikes me: in sys.path, the path to "site-packages" contains 
the dir "lib" (lowercase!) whereas in the file system it would be 
written "Lib" (mixed case). Could this pose a problem?

This is the path:

>>> sys.path
['C:\\Programme\\Python24\\Lib\\idlelib', 'C:\\WINNT\\system32
\\', 'C:\\Programme\\Python24', 'C:\\Programme\\Python24
\\DLLs', 'C:\\Programme\\Python24\\lib', 'C:\\Programme\\Python24\\lib
\\plat-win', 'C:\\Programme\\Python24\\lib\\lib-tk', 'C:\\Programme

Any hints for me?


remove underscore+nospam if you want to mail me

More information about the Python-list mailing list