yum install mysql-devel出错

来源:4-8 数据库ORM

慕盖茨4259344

2019-11-15

还有 yum install mysql-devel也报错
报错如下

Transaction check error:
  file /usr/include/mysql/plugin.h from install of mysql-community-devel-5.7.28-1.el7.x86_64 conflicts with file from package bt-mysql56-5.6.44-1.el7.x86_64
  file /usr/include/mysql/plugin_audit.h from install of mysql-community-devel-5.7.28-1.el7.x86_64 conflicts with file from package bt-mysql56-5.6.44-1.el7.x86_64
  file /usr/include/mysql/plugin_ftparser.h from install of mysql-community-devel-5.7.28-1.el7.x86_64 conflicts with file from package bt-mysql56-5.6.44-1.el7.x86_64
  file /usr/include/mysql/plugin_validate_password.h from install of mysql-community-devel-5.7.28-1.el7.x86_64 conflicts with file from package bt-mysql56-5.6.44-1.el7.x86_64

Error Summary

写回答

4回答

慕盖茨4259344

提问者

2019-11-15

我解决了谢谢老师提示
yum install python3-devel就行了

0
0

编程浪子

2019-11-15

MySQLdb/_mysql.c:38:20: fatal error: Python.h: No such file or directory
#include “Python.h”


这个错误就是  安装  yum install python-devel 


你在重新 执行 看看报错什么

pip install mysqlclient  


0
4
慕盖茨4259344
在源环境下pip install mysqlclient没问题,pip3 install有问题,pips是python3的,所以python3有python-devel吗
2019-11-15
共4条回复

编程浪子

2019-11-15

0
1
慕盖茨4259344
老师我 python-devel早就安装好了啊
2019-11-15
共1条回复

编程浪子

2019-11-15

你好

应该还有更多的详细错误,能否完整复制出来

0
1
慕盖茨4259344
老师,yum install mysql-devel后的包名是mysql-community-devel吗
2019-11-15
共1条回复

Python Flask构建微信小程序订餐系统(可用于毕设)

微信小程序 + Python Flask 打造订餐系统全栈应用,可用于毕设。

1709 学习 · 1889 问题

查看课程