SQL >> Database teknologi >  >> RDS >> Mysql

Installer mysql-python på CentOS

Jeg kører Python 2.7.5, MySQL 5.6 og CentOS 7.1.1503.

For mig gjorde denne kommando arbejdet:

# pip install mysql-python 

Her er forudsætningerne:

Installer Python pip:

# rpm -iUvh https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm # yum -y update Reboot the machine (if kernel is also updated) # yum -y install python-pip 

Installer Python devel-pakkerne:

# yum install python-devel 

Installer MySQL devel-pakkerne:

# yum install mysql-devel 
  1. Python 3.4 kan ikke installere mysql-python

  2. Installation af mysqlclient på CentOS 7 med MariaDB 10.2

  3. Kan ikke installere flask-sqlalchemy / mysql-python

  4. Ret fejlen ved installation af MySQL-Python