January 5th, 2005, 04:30 PM
Python doesn't detect MySQLdb
I have installed the MySQLdb package on my computer according to an article on DevShed. I unpacked it, but my problem is that I don't know where I have to put this folder in order for the Python program to detect it. Should I change any PATH variables somewhere?
For now when I type "import MySQLdb" in Python Shell, it says there is no module by this name.
January 5th, 2005, 04:43 PM
I'm not even sure if this will make a difference, but try doing:
from distutils.core import MySQLdb
This would mean that MySQLdb has to be in the same folder as MySQLdb.
January 5th, 2005, 06:12 PM
If it's the MySqlDB package from Sourceforge, the ReadMe file has installation instructions.
I've never used it, but it looks like you need to configure it a bit first (which version of MySQL are you using, where is it installed, etc), then run the setup.py program to build it, then again to install it...