代码: 全选
zhan@ubuntu:~$ python
Python 2.4.3 (#2, Aug 25 2006, 17:37:59)
[GCC 4.1.2 20060817 (prerelease) (Ubuntu 4.1.1-11ubuntu1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import MySQLdb
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named MySQLdb
>>>
代码: 全选
zhan@ubuntu:~$ dpkg -L python-mysqldb
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/python-mysqldb
/usr/share/doc/python-mysqldb/changelog.Debian.gz
/usr/share/doc/python-mysqldb/copyright
/usr/share/doc/python-mysqldb/changelog.gz
/usr/share/doc/python-mysqldb/README.gz
/usr/share/doc/python-mysqldb/MySQLdb.txt.gz