首页 > 数据库技术 > 详细

安装MySQL-python报错

时间:2015-07-09 22:57:38      阅读:533      评论:0      收藏:0      [点我收藏+]

    _mysql.c: 在函数‘DL_EXPORT’中:

    _mysql.c:3058: 错误:expected declaration specifiers before ‘init_mysql’

    _mysql.c:3166: 错误:expected ‘{’ at end of input

    error: command ‘gcc‘ failed with exit status 1

    

    ----------------------------------------

Command "/usr/bin/python -c "import setuptools, tokenize;__file__=‘/tmp/pip-build-CiKuqe/MySQL-python/setup.py‘;exec(compile(getattr(tokenize, ‘open‘, open)(__file__).read().replace(‘\r\n‘, ‘\n‘), __file__, ‘exec‘))" install --record /tmp/pip-ktToTH-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-CiKuqe/MySQL-python



yum -y install python-devel mysql-devel 

安装MySQL-python报错

原文:http://zhangxiaohe.blog.51cto.com/7821029/1672544

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!