Wednesday, November 25, 2009

Installing MySQLdb for python 2.6 in Windows xp

           Anybody trying to use python 2.6 and MySQL may have found that there is no package for connecting them both.. but for python 2.5 MySQLdb installer is available but not for 2.6. Though the installer for python 2.5 claims to work with python 2.6 in the download page but when we try to install with python 2.6 the installation stops giving a message that "Python 2.5 was not found". So i set out to find whether anyone has made a binary for python 2.6 for windows but was unsuccessfull intialy but i found out that you can download the sourcecode and compile and install them using MS Visual Studio but it turn out to be a pain in the neck.
            Later, while i was frustrated by the errors, i came upon a blog which gave a binary which we can install directly with no hassles... it was compiled by someone in windows and posted it so that others can benefit. Click to download MySQLdb for Python 2.6 Windows XP installer.

3 comments:

Fire Centaur said...

cool, but where do we place this in our python folder?

Neeraj said...

Its a windows installer file.. if you have python 2.6 already installed, just double click the installer and follow the instructions... and you are done

Unknown said...

hi neeraj, I have python 2.6, i obtained a package (MySQL-python-1.2.3c1.win32-py2.6.exe). Stil I get errors - could not succeed in importing 'mysqldb' package? do have any idea?

Post a Comment