I'm using CentOS release 6.5 (Final).
I 'm currently using python 2.4, in which I can use MySQL without problems.
root@dedicado [/home/digicelc/public_html/gestion/python/cater]# python
>>> import MySQLdb
>>>
But, when I try it from python2.7
root@dedicado [/home/digicelc/public_html/gestion/python/cater]# python2.7
>>> import MySQLdb
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named MySQLdb
>>>
I don't want to change the python version in the server, just want to make the module avaiable for 2.7
Finally this:
# yum install python27-MySQL-python
Is giving me this:
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