安装MySQL-python报错 error: command 'gcc' failed with exit status 1解决方法
错误如:
_mysql.c:2331: error: ‘_mysql_ConnectionObject’ has no member named ‘open’
_mysql.c:2338: error: ‘_mysql_ConnectionObject’ has no member named ‘converter’
_mysql.c:2345: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:2352: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:2359: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:2422: error: ‘_mysql_ResultObject’ has no member named ‘converter’
_mysql.c:2422: error: initializer element is not constant
_mysql.c:2422: error: (near initialization for ‘_mysql_ResultObject_memberlist[0].offset’)
_mysql.c: In function ‘_mysql_ConnectionObject_getattr’:
_mysql.c:2444: error: ‘_mysql_ConnectionObject’ has no member named ‘open’
error: command 'gcc' failed with exit status 1
要安装的库与系统库冲突了;
解决方法:
1、找出已安装的MySQL:
rpm -qa | grep -i mysql
2、执行如下删除命令:
rpm -ev mysql-5.1.73-3.el6_5.x86_64
rpm -ev mysql-libs-5.1.73-3.el6_5.x86_64
rpm -ev MySQL-python-1.2.3-0.3.c1.1.el6.x86_64
3、重新安装:
yum -y install mysql-devel
4、执行安装命令:
python setup.py build
python setup.py install
5、运行python:
python
搞定!
完美!
安装MySQL-python报错 error: command 'gcc' failed with exit status 1解决方法相关推荐
- 安装kerberos报错 error: command 'gcc' failed with exit status 1
pip install kerberos 报错:error: command 'gcc' failed with exit status 1 安装环境工具 yum install gcc libffi ...
- Mac os更新系统后安装scrapy报错error: command ‘xcrun‘ failed with exit status 1
查看报错信息: In file included from src/twisted/test/raiser.c:4: In file included from /Library/Developer/ ...
- pip install scrpy 报错: command 'gcc' failed with exit status 1
报错如下: copying src/twisted/words/xish/xpathparser.g -> build/lib.linux-x86_64-2.7/twisted/words/xi ...
- tx2安装包报错error: command ‘aarch64-linux-gnu-gcc‘ failed with exit status 1
tx2上安装包python-hwinfo,时报错: pip3 install python-hwinfo 错误信息为: error: command 'aarch64-linux-gnu-gcc' f ...
- 安装torchvision时,报错error: command ‘aarch64-linux-gnu-gcc‘ failed with exit status 1
jetson nano安装torchvision时报错 进行编译安装: cd torchvision python3 setup.py install 解决: 1.如果是python2请先使用sudo ...
- error: command 'gcc' failed with exit status 1
使用 pip install scrapy 安装 scrapy 时,提示error: command 'gcc' failed with exit status 1 解决方法: yum -y in ...
- 【吭】centos安装mysql报错OSError: mysql_config not found/error: command ‘gcc‘ failed with exit status 1
问题: OSError: mysql_config not found 解决:yum install mysql-devel 问题:error: command 'gcc' failed wit ...
- python mysql gcc_MySQL-python “error: command 'gcc' failed with exit status 1”错误
安装MySQL-python-1.2.3c1出现"error: command 'gcc' failed with exit status 1"错误 具体报错信息如下: _mysq ...
- 安装oracle gcc版本,安装cx_Oracle时报错:error: command 'gcc' failed with exit status 1
安装cx_Oracle时报错:error: command 'gcc' failed with exit status 1 发布时间:2020-06-19 21:27:36 来源:51CTO 阅读:1 ...
最新文章
- 最新 macOS Sierra 10.12.3 安装CocoaPods及使用详解
- 从零开始实现穿衣图像分割完整教程(附python代码演练)
- wpf- DataGrid 常用属性和事件
- c语言自动ejter,Skinnskalle eller ej, ingen ska behöva dö för sina åsikter
- ios 旋转屏幕试图切换_TCL·XESS 旋转智屏 A200Pro 评测:方向一换,体验大不相同...
- samba在企业网应用
- JSP — 小项目【实现登录界面】
- cost of path 的计算
- 浅入深出Vue:数据渲染
- sed,awk,grep教程
- 下载 Chrome插件 crx的教程
- LTE基本结构(常见接口)
- 小程序注册开发全流程
- 最小公倍数三种方法(附代码)
- 关于二进制的起源,莱布尼茨以及中国伏羲八卦图
- 学习笔记(13):C++编程FFMpeg(QT5+OpenCV)实战--实时美颜直播推流-ffmpegSDK开发环境准备,第一个ffmpeg项目创建...
- SDRAM DQM的解释
- 树莓派——树莓派语音模块2麦克风阵列扩展板评测
- 尚硅谷在线教育四:尚硅谷在线教育前端的知识
- ocr 图像倾斜矫正-霍夫变换
热门文章
- 计算机英语教学能力大赛,英语教学网络中心举办 “志勤杯”英语口语技能大赛 和“志勤杯”英语写作技能大赛...
- .计算机自动关机或重启,电脑自动关机或者重启怎么处理
- oa办公自动化系统(ssh mysql)_OA办公自动化系统(SSH+MySQL)
- js控制table中tr位置互换
- (10) nginx 统计模块安装使用和优化
- 从70元到60亿,可以进来看看这篇文章
- DATA URI schema(data:base64)协议常用数据格式
- sqlmap的使用----进阶
- 程序员必知的8大排序(二)-------简单选择排序,堆排序(java实现)
- window.onload,body onload=function(), document.onreadystatechange, httpRequest.onreadystatechang