Home:ALL Converter>MySQL connector in centOS 7

MySQL connector in centOS 7

Ask Time:2015-10-13T22:26:28         Author:urb

Json Formatter

I'm trying to deploy a flask app in a centOS 7.

I installed the connector with: sudo yum install mysql-connector-python

But when I run: python init.py, I got this error:

from mysql import connector
ImportError: No module named mysql

Note: my project is inside a virtualenv.

Inside my virtualenv:

pip install MySQL-python

Error:Requirement already satisfied (use --upgrade to upgrade): MySQL-python in /root/ams/env/lib/python2.7/site-packages

yum install MySQL-python

Error:Package MySQL-python-1.2.3-11.el7.x86_64 already installed and latest version

Author:urb,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/33105272/mysql-connector-in-centos-7
Naveen Agarwal :

you can run this : \n\nsudo yum install mysql-connector-python-rf\n",
2017-08-22T12:05:15
yy