Python not importing mysqldb
83nini
83nini at gmail.com
Fri Apr 24 16:04:25 EDT 2009
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
getting
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python26\lib\site-packages\MySQLdb\__init__.py", line 19,
in <module>
import _mysql
ImportError: No module named _mysql
WHY YYYYYYYYYYYYYYYYYYYYYYYYYYYYY????????
why does it have to be so complicated???? what am i doing wrong for
god's sake?
thanks in advance,
cheers,
Lina
More information about the Python-list
mailing list