title: Import error: No module named _mysql
body: <p>I am trying to import MySQLdb using python 2.7, while I am getting the below error. I am new on Ubuntu, so unable to figure out where things are going wrong.</p>
  
  <p>error message :</p>
  
  <pre><code>import MySQLdb
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/usr/local/lib/python2.7/dist-packages/MySQLdb/__init__.py", line 19, in &lt;module&gt;
  ImportError: No module named _mysql
  </code></pre>
  
  <p>Could you please help me out ?</p>
  
  <p>i have used below commands to install python mysqldb</p>
  
  <pre><code>$ gunzip MySQL-python-1.2.4b4.tar.gz
  $ tar -xvf MMySQL-python-1.2.4b4.tar
  $ cd MySQL-python-1.2.4b4
  $ python setup.py build
  $ python setup.py install
  </code></pre>