我已经下载了 MySQL-python 连接器并使用它安装了它
$ sudo python setup.py install.
从 python shell 导入该包时,会引发以下错误。请帮帮我。
import MySQLdb
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.6/dist-packages/MySQLdb/__init__.py", line 19, in <module>
import _mysql
File "build/bdist.linux-i686/egg/_mysql.py", line 23, in <module>
File "build/bdist.linux-i686/egg/_mysql_api_util.py", line 78, in setup_platform_namespace
ImportError: No module named _mysql_unix.api