Error 1: EnvironmentError: mysql_config not found
Solution: yum install mysql-devel
Error 2: Python.h No such file or directory
For more errors see the following lines.
_mysql.c:29:20: fatal error: Python.h: No such file or directory
#include “Python.h”
^
compilation terminated.
error: command ‘gcc’ failed with exit status 1
Solution: yum install python-devel.x86_64
In fact, these two errors are one and the same, both are not installed python-devel, only error 2 is 64-bit
Similar Posts:
- Linux Error: _mysql.c:32:20: fatal error: Python.h: No such file or directory [Solved]
- Ubuntu16.04 Install python-ldap error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
- [How to Solve] ImportError: No module named MySQLdb
- MySQL Python error installed in pyenv 2.7 environment
- Error in installing MySQL Python on MAC [Solved]
- How to Solve Python flash_mysqldb Install error
- CentOS 7: How to Solve Mysqlclient Install Error
- caffe35793;- 38382;- 39064;src/caffe/net. cpp:8 :18: fatal error: hdf5.h: No such file or directory compilation term…
- Python Installation WARNING: pip is configured with locations that require TLS/SSL, however the ssl module…
- [Solved] Python import module error: importerror: no module named mysql.connector