MySQLdb import problem on debian
Posted by:
hawk gao
Date: October 30, 2008 12:01AM
I installed python-mysqldb by command "apt-get install python-mysqldb" on debian.
but, when i import MySQLdb under python2.4. the error message prompt that
>>> import MySQLdb
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "MySQLdb/__init__.py", line 22, in ?
raise ImportError, "this is MySQLdb version %s, but _mysql is version %r" %\
ImportError: this is MySQLdb version (1, 2, 2, 'final', 0), but _mysql is version (1, 2, 1, 'final', 2)
how can i get the right version MySQLdb or _mysql.so?
Thanks in advance!
Hawk
Edited 1 time(s). Last edit at 10/30/2008 12:01AM by hawk gao.