首页 > 数据库技术 > 详细

pip安装mysql_python报错

时间:2018-09-24 00:20:53      阅读:281      评论:0      收藏:0      [点我收藏+]
pip安装mysql_python报错


    _mysql.c:29:20: fatal error: Python.h: No such file or directory
     #include "Python.h"
                        ^
    compilation terminated.
    error: command ‘gcc‘ failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python2 -u -c "import setuptools, tokenize;__file__=‘/tmp/pip-build-gmcywp/MySQL-python/setup.py‘;exec(compile(getattr(tokenize, ‘open‘, open)(__file__).read().replace(‘\r\n‘, ‘\n‘), __file__, ‘exec‘))" install --record /tmp/pip-uSDDOK-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-gmcywp/MySQL-python/
You are using pip version 8.1.2, however version 18.0 is available.
You should consider upgrading via the ‘pip install --upgrade pip‘ command.

这个报错是应为没有安装python-devel造成的。安装一下这个软件即可
Centos:yum -y insatll python-devel

pip安装mysql_python报错

原文:http://blog.51cto.com/13447608/2280883

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