Ciao, ho appena installato python-mysqldb, infatti se lancio:
codice:
root@caladan:/usr/share/doc/python-mysqldb# dpkg-query -L python-mysqldb
/.
/usr
/usr/lib
/usr/lib/python2.4
/usr/lib/python2.4/site-packages
/usr/lib/python2.4/site-packages/_mysql.so
/usr/lib/python2.5
/usr/lib/python2.5/site-packages
/usr/lib/python2.5/site-packages/_mysql.so
/usr/share
/usr/share/doc
/usr/share/doc/python-mysqldb
/usr/share/doc/python-mysqldb/FAQ.txt.gz
/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
/usr/share/pycentral
/usr/share/pycentral/python-mysqldb
/usr/share/pycentral/python-mysqldb/site-packages
/usr/share/pycentral/python-mysqldb/site-packages/MySQLdb
/usr/share/pycentral/python-mysqldb/site-packages/MySQLdb/constants
/usr/share/pycentral/python-mysqldb/site-packages/MySQLdb/constants/__init__.py
/usr/share/pycentral/python-mysqldb/site-packages/MySQLdb/constants/CR.py
/usr/share/pycentral/python-mysqldb/site-packages/MySQLdb/constants/FIELD_TYPE.py
/usr/share/pycentral/python-mysqldb/site-packages/MySQLdb/constants/ER.py
/usr/share/pycentral/python-mysqldb/site-packages/MySQLdb/constants/FLAG.py
/usr/share/pycentral/python-mysqldb/site-packages/MySQLdb/constants/REFRESH.py
/usr/share/pycentral/python-mysqldb/site-packages/MySQLdb/constants/CLIENT.py
/usr/share/pycentral/python-mysqldb/site-packages/MySQLdb/__init__.py
/usr/share/pycentral/python-mysqldb/site-packages/MySQLdb/converters.py
/usr/share/pycentral/python-mysqldb/site-packages/MySQLdb/connections.py
/usr/share/pycentral/python-mysqldb/site-packages/MySQLdb/cursors.py
/usr/share/pycentral/python-mysqldb/site-packages/MySQLdb/release.py
/usr/share/pycentral/python-mysqldb/site-packages/MySQLdb/times.py
/usr/share/pycentral/python-mysqldb/site-packages/_mysql_exceptions.py
/usr/share/pycentral/python-mysqldb/site-packages/MySQL_python2.5-1.2.1_p2-py2.5.egg-info
root@caladan:/usr/share/doc/python-mysqldb#
Però una volta che provo in python
codice:
root@caladan:/usr/share/doc/python-mysqldb# python
Python 2.5 (r25:51908, Oct 6 2006, 15:22:41)
[GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import MySQLdb
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named MySQLdb
>>>
qualcuno mi sa aiutare?
grazie