mysql-connector not seeing python2.7

363
July 08, 2017, at 11:06 AM

I'm trying to write a quick script on a server. The default python was 2.6 - I installed 2.7 along side because I needed it for mysql-connector I got the program installed and I aliased it as mentioned here so the system defaults to it.

When I try and run rpm -ivh mysql-connector-python-2.1.6-1.el7.x86_64.rpm

from the command line to actually install the connector I get:

warning: mysql-connector-python-2.1.6-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY error: Failed dependencies: python(abi) = 2.7 is needed by mysql-connector-python-2.1.6-1.el7.x86_64 [root@localhost ~]# key ID 5072e1f5: NOKEY

If I type python -V it returns the 2.7 that I am expecting.

Where did I go wrong??

Answer 1

You may need to check the version of your python-devel package, and install the corresponding package for python-devel for python 2.7 / (python27-devel)

yum search python | grep -i devel

An alternative it could be to use the EPEL repo, from Fedora for your server.

If you enable the EPEL you can install python 2.7 and the devel headers using yum:

yum install python27

yum install python27-devel

These packages won't then conflict with the python 2.6 ones.

and then install the mysql-connector package.

READ ALSO
Generating dynamic link preview and thumb nail for my domain in facebook comments or posts

Generating dynamic link preview and thumb nail for my domain in facebook comments or posts

I want to generate dynamic thumbnail and header of my webpage in facebookFor example each time when somebody type my domain name "example

60
Please check a newbie's script

Please check a newbie's script

Please check my script below

31
Accessing specific DOM Element? (Chrome Ext) Detailed w/ code

Accessing specific DOM Element? (Chrome Ext) Detailed w/ code

I'm trying to, after a name is entered, search the results and see if a professor matches up

24
Form inputs inside and outside of modal, inside don't work

Form inputs inside and outside of modal, inside don't work

I want to make a form that have some inputs in the page, normally, and some checkboxs inside a modalI did everything correct, but the submit button don't send to my php the modal checkboxs

46