【发布时间】:2012-04-09 07:21:14
【问题描述】:
我正在尝试使用 MySQLdb,当我尝试导入它时,我收到以下错误。有什么想法吗?我目前在 aws 上使用 ubuntu 实例。
>>> import MySQLdb
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/pymodules/python2.6/MySQLdb/__init__.py", line 19, in <module>
import _mysql
ImportError: libmysqlclient_r.so.16: cannot open shared object file: No such file or directory
>>>
【问题讨论】:
-
你是如何安装mysqldb的?来自 apt-get 或 pip/easy_install?
标签: python mysql django ubuntu mysql-python