I'm trying to run the simple django tutorial on my windows 7 machine after having just read the python tutorial. But it complains, "django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb".

So I find out that I need a module called MySQLdb. However, very surprisingly, this is difficult to install on windows. I need a C compiler among other things and the README states, "I don't do Windows... Don't ask me for help with Windows because I can't help you." After some googling I find this site which has binaries for old versions (2.5 and 2.6) of python, but no binaries for python 2.7.

This makes me think python was not such a good choice for an easy script/web platform... I can't imagine RoR is anything but easy for a hello world with mysql...

So what should I do? Downgrade Python to an older version to use one of the above prebuilt binaries? Install a c compiler among other things to try and build MySQLdb? Realize that python just doesn't work easily on windows and only use this on a mac/linux machine?

1 Answer 1


yes, there is no binaries yet for python2.7 because 2.7 has just released 2 days ago, on 4 July 2010. and the binaries will soon be updated just calm down.

you can do your tutorials on django by using SQLite3 as DB backend (the Driver installed by default and it's file-based DB and the django developers like to use it as an development DB backend. and remember, Django Model framework is DBMS independent.

just open your settings.py and replace mysql by sqlite3 and do manage.py syndb again and your happy. :)

  • Thank you for this reply. Ok, didn't realize python 2.7 was so new, but the binaries for MySQLdb are over a year old and are therefore missing newer versions of MySQLdb. I'm calm now :), but still shocked that the quintessential "hello world" app (for a web platform and even for python itself, has to include reading a field in mysql) requires 2 downgrades (3.1.2 -> 2.7 -> 2.6) and multiple headaches
    – apptree
    Jul 7, 2010 at 1:06
  • Since it is the future now, see here: stackoverflow.com/a/25445938/544342.
    – WAF
    Dec 17, 2014 at 16:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .