Yikes!

[code lang=”bash”]
Traceback (most recent call last):
File “some_file.py”, line 4, in
import MySQLdb as mdb
ImportError: No module named MySQLdb
[/code]

So how do you fix this on Linux (Ubuntu) ?

[code lang=”bash”]
sudo apt-get install python-mysqldb
[/code]