title: Installing MySQLdb specifically in python 2.7 on centos
body: <p>I'm using CentOS release 6.5 (Final). </p>
  
  <p>I 'm currently using python 2.4, in which I can use MySQL without problems. </p>
  
  <pre><code>root@dedicado [/home/digicelc/public_html/gestion/python/cater]# python
  &gt;&gt;&gt; import MySQLdb
  &gt;&gt;&gt; 
  </code></pre>
  
  <p>But, when I try it from python2.7</p>
  
  <pre><code>root@dedicado [/home/digicelc/public_html/gestion/python/cater]# python2.7
  &gt;&gt;&gt; import MySQLdb
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  ImportError: No module named MySQLdb
  &gt;&gt;&gt; 
  </code></pre>
  
  <p>I don't want to change the python version in the server, just want to make the module avaiable for 2.7</p>
  
  <p>Finally this:</p>
  
  <pre><code># yum install python27-MySQL-python 
  </code></pre>
  
  <p>Is giving me this:</p>
  
  <pre><code>Error: Package: python27-MySQL-python-1.2.3-9.el6.centos.alt.x86_64 (scl)
             Requires: libmysqlclient_r.so.16()(64bit)
  Error: Package: python27-MySQL-python-1.2.3-9.el6.centos.alt.x86_64 (scl)
             Requires: libmysqlclient_r.so.16(libmysqlclient_16)(64bit)
   You could try using --skip-broken to work around the problem
   You could try running: rpm -Va --nofiles --nodigest
  </code></pre>