Install Mysql-python
and then error.
Environmenterror:mysql_config not found
Online search solution, need to install Mysql-devel
And then
Yum Install Mysql-devel
Can not be installed, the error content is probably related to the MySQL version of the problem
Workaround
Download yourself and match your MySQL version to Mysql-devel
1. See what versions of MySQL and related packages are installed
grep MySQL
Mysql-community-client-5.6.34-2.el7.x86_64
Mysql-community-server-5.6.34-2.el7.x86_64
Mysql-community-release-el7-5.noarch
Mysql-community-common-5.6.34-2.el7.x86_64
Mysql-community-libs-5.6.34-2.el7.x86_64
Found my is the community version of the 5.6, under a lot of non-community version of Mysql-devel, has failed
2. Download the corresponding version of Mysql-devel
Mysql-community-devel
Can be searched from this URL to get http://rpm.pbone.net/
wget ftp://mirror.switch.ch/pool/4/mirror/mysql/Downloads/MySQL-5.6/ mysql-community-devel-5.6.38-2.sles12.x86_64.rpm
RPM-IVH mysql-community-devel-5.6. 2. sles12.x86_64.rpm
3. Installing Mysql-python
Install Mysql-python
And then it's OK.
Centos7 installing Mysql-python times wrong environmenterror:mysql_config not found