MySQLdb module is not installed on my python
<p>I am trying to install the mysqldb module in my python2.7 ubuntu. I am using the following ways to install</p>

<pre><code>    $ tar -xvf MySQL-python-1.2.2.tar
    $ cd MySQL-python-1.2.2
    $ sudo python setup.py build
    $ sudo python setup.py install
</code></pre>

<p>then i am going to import the module. It shows the following error.</p>

<pre><code>    import MySQLdb
    Traceback (most recent call last):
       File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    ImportError: No module named MySQLdb
</code></pre>

<p>I have also tried to install by using apt-get and pip. there is no way it shows the same above import error. Could you please help me? thanks in advance.</p>