解决安装MySQL-python时发生错误计划
发布时间:2022-06-14 21:15:30 所属栏目:教程 来源:互联网
导读:安装MySQL-python时发生错误:error:command gcc failed with exit status 1其实就是有一些安装包没有安装成功了,我们只要安装一下就可以了. 部份错误代码: _mysql.c:35:23: fatal error: my_config.h: No such file or directory compilation terminated.
安装MySQL-python时发生错误:error:command 'gcc' failed with exit status 1其实就是有一些安装包没有安装成功了,我们只要安装一下就可以了. 部份错误代码: _mysql.c:35:23: fatal error: my_config.h: No such file or directory compilation terminated. error: command 'gcc' failed with exit status 1 The complete error message is as below --phpfensi.com 解决方法: 1、先看看mysql组件装了哪些? 命令:rpm -qa mysql* 如果缺少mysql-devel组件就安装。 命令:yum install mysql-devel 如果安装时有提示冲突,先remove掉以前的版本. 命令:yum remove mysql* 2、如果还报错,安装pypy-devel. 3、如果还报错,安装python-devel. 好了我们安装过各处组件之后就可以了,其实小编只是把mysql-devel组件安装成功问题就解决了. (编辑:随州站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |