报错一:EnvironmentError: mysql_config not found

解决:yum install mysql-devel

 

报错二:Python.h No such file or directory

更多的错误见以下几行:

_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

 

解决: yum install python-devel.x86_64

 

其实这两个错误是一个,都是没有装python-devel,只不过错误二是64位

相关文章:

  • 2021-12-10
  • 2021-04-15
  • 2022-12-23
  • 2022-12-23
  • 2021-10-03
  • 2021-08-16
  • 2022-01-21
  • 2021-10-16
猜你喜欢
  • 2021-09-14
  • 2021-10-14
  • 2021-10-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案