centos7安装mysqlclient提示error: command 'gcc' failed with exit status 1
报错:
_mysql.c:37:10: fatal error: Python.h: 没有那个文件或目录
37 | #include "Python.h"
| ^~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
检查gcc等已经安装
解决办法:
yum install python3-devel
报错:
OSError:找不到mysql_config
解决思路:
搜索看看解决办法,不行的话看看是不是忘了安装这个