After I installed MySQLdb by
sudo apt-get install python-mysqldb
I can import and use it when I use Python 2.6, but not 2.7. (ImportError: No module named MySQLdb)
I think that apt-get install MySQLdb in version 2.6, but I don't know how to make python 2.7 work with it. Please help me. Thanks a lot!