python安装mysqlclient报错_Centos 6 – sudo在为Python 3.4安装mysqlclient时...
我是Centos 6和Linux的新手.我需要安装Python 3.4,但Centos 6默认使用Python 2.6.6.
我已经将Python 3.4安装到/usr/local/lib/Python3.4.
但是,我在安装mysqlclient时遇到问题.
我试过pip3.4安装mysqlclient.
这是错误消息.
错误
_mysql.c:29:23: error: my_config.h: No such file or directory
_mysql.c:30:19: error: mysql.h: No such file or directory
_mysql.c:31:26: error: mysqld_error.h: No such file or directory
_mysql.c:51:20: error: errmsg.h: No such file or directory
_mysql.c:74: error: expected specifier-qualifier-list before ‘MYSQL
_mysql.c:88: error: expected specifier-qualifier-list before ‘MYSQL_RES’
_mysql.c: In function ‘_mysql_Exception’:
_mysql.c:128: warning: implicit declaration of function ‘mysql_errno’
_mysql.c:128: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:131: error: ‘CR_MAX_ERROR’ undeclared (first use in this function)
_mysql.c:131: error: (Each undeclared identifier is reported only once
_mysql.c:131: error: for each function it appears in.)
_mysql.c:139: error: ‘CR_COMMANDS_OUT_OF_SYNC’ undeclared (first use in this function)
_mysql.c:140: error: ‘ER_DB_CREATE_EXISTS’ undeclared (first use in this function)
_mysql.c:141: error: ‘ER_SYNTAX_ERROR’ undeclared (first use in this function)
_mysql.c:142: error: ‘ER_PARSE_ERROR’ undeclared (first use in this function)
_mysql.c:143: error: ‘ER_NO_SUCH_TABLE’ undeclared (first use in this function)
_mysql.c:144: error: ‘ER_WRONG_DB_NAME’ undeclared (first use in this function)
_mysql.c:145: error: ‘ER_WRONG_TABLE_NAME’ undeclared (first use in this function)
_mysql.c:146: error: ‘ER_FIELD_SPECIFIED_TWICE’ undeclared (first use in this function)
_mysql.c:147: error: ‘ER_INVALID_GROUP_FUNC_USE’ undeclared (first use in this function)
_mysql.c:148: error: ‘ER_UNSUPPORTED_EXTENSION’ undeclared (first use in this function)
_mysql.c:149: error: ‘ER_TABLE_MUST_HAVE_COLUMNS’ undeclared (first use in this function)
_mysql.c:178: error: ‘ER_DUP_ENTRY’ undeclared (first use in this function)
_mysql.c:221: warning: implicit declaration of function ‘mysql_error’
_mysql.c:221: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c: In function ‘_mysql_server_init’:
_mysql.c:325: warning: label ‘finish’ defined but not use
_mysql.c:242: warning: unused variable ‘item’
_mysql.c:241: warning: unused variable ‘groupc'
_mysql.c:241: warning: unused variable ‘i’
...
error: command 'gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/local/bin/python3.4 -c "import setuptools, tokenize;__file__=
'/tmp/pip_build_username/mysqlclient/setup.py';
exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('
', '
'), __file__, 'exec'))"
install --record /tmp/pip-s1b9rgku-record/install-record.txt
--single-version-externally-managed --compile failed with error code 1
in /tmp/pip_build_username/mysqlclient
Storing debug log for failure in /home/username/.pip/pip.log
sudo /usr/local/bin/pip3.4 install mysqlclient
python安装mysqlclient报错_Centos 6 – sudo在为Python 3.4安装mysqlclient时...相关推荐
- python def函数报错详解_JSer 快速入门 Python 之函数详解
前一篇文章,用一天的时间,通过与 JavaScript 做对比的方式,快速领略了 Python 全貌. 梳理了那么多,若忽略细节差异,两门语言只有两个重要差异: 1.书写风格上大相同 2.功能覆盖上, ...
- python打开文件报错无效序列_如何在python中读取fasta文件?
我正在尝试读取FASTA文件,然后查找特定的 motif(string)并打印出序列和次数. A FASTA file只是一系列序列(字符串),以标题行开头,标题或新序列的开头是">& ...
- linux oracle swd.oui,centos7安装oracle11g报错,请问怎么解?
centos7安装oracle11g报错,请问怎么解? 在centos7下安装oracle11g到85%时报错提示Error in invoking target 'install' of makef ...
- Eclipse 安装插件报错:An error occurred while collecting items to be installed session context was...解决方法汇总
文章目录 前言 一.产生错误的场景 二.错误信息描述 三.出错原因分析 3.1.错误原因定位 3.2.Eclipse 的更新管理 P2 出错 四.解决方式 4.1.进入 Eclipse 的安装根目录 ...
- 全局安装gulp 报错问题解决
全局安装gulp 报错问题解决 参考文章: (1)全局安装gulp 报错问题解决 (2)https://www.cnblogs.com/haibiancao/p/10756473.html (3)ht ...
- Ubuntu16安装搜狗输入法报错:dpkg: 处理归档 sogoupinyin.deb (--install)时出错:安装 sogoupinyin 将破坏 fcitx-ui-qimpanel
Ubuntu16安装搜狗输入法报错:dpkg: 处理归档 sogoupinyin_2.3.2.07_amd64-831.deb (–install)时出错:安装 sogoupinyin 将破坏 fci ...
- 安装npm报错rollbackFailedOptional: verb npm-session原因及解决方案
安装npm报错rollbackFailedOptional: verb npm-session原因及解决方案 今天想安装一个echart做柱形图之类的,结果输入后终端显示rollbackFailedO ...
- django2.0 在安装mysqlclient 报错ERROR: Command errored out with exit status 1: python setup.py egg_info
环境:centos7 + Django2.0 + python3.6 django2.0连接mysql需要安装PyMySQL和mysqlclient pip3 install PyMySQL pip ...
- pip 安装 mysqlclient 报错 Command errored out with exit status 1
安装mysqlclient报错: ERROR: Command errored out with exit status 1: 'd:\cs\csruanjiananzhuang\python\pyt ...
最新文章
- Mysql高级调优篇——第四章:Sql实战调优场景剖析(下)
- Windows性能计数器监控实践
- 【C 语言】二级指针作为输入 ( 二维数组 | 二维数组遍历 | 二维数组排序 )
- Linux系统存储交换机日志
- OpenKruise:解放 DaemonSet 运维之路
- python实现计算字符串或列表中每个字符出现的次数,并打印出现次数最多的字符
- 使用postman测试接口
- python xlwings 切片_Python xlwings库学习笔记(1)
- 在华为云ECS上手工通过Docker部署tomcat
- 【bzoj 十连测】[noip2016十连测第三场]Problem C: 序列(静态主席树)
- JDBC 获取 Oracle 数据库连接(使用 Driver)
- 你猜一个 TCP 连接上面能发多少个 HTTP 请求
- python里怎么读取文件-python怎么读取文本文件
- PS制作微信公众号封面
- MATLAB将MP4转为GIF
- 定了,6大领域93个开源任务,阿里开源导师带你参与中科院开源之夏2022
- 什么是软件危机?它有哪些典型表现?为什么会出现软件为危机?
- ios微信公众号分享自定义分享无效
- 科研第二步:远程在服务器上跑程序jupyter使用
- MBTI职业性格在软件研发组织中不同岗位的分布研究