码迷,mamicode.com
首页 > 数据库 > 详细

安装MySQL-python报错

时间:2015-07-09 23:00:40      阅读:1562      评论:0      收藏:0      [点我收藏+]

标签:mysql-python

    _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报错

标签:mysql-python

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!