IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    pip安装mysql-python报致命错误:my_config.h:没有那个文件或目录

    woyoo发表于 2014-09-25 12:09:39
    love 0

    pip install mysql-python

    _mysql.c:44:23: 致命错误:my_config.h:没有那个文件或目录
    
    编译中断。
    
    error: command 'gcc' failed with exit status 1
    
    ----------------------------------------
    Cleaning up...
    Command /usr/local/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/mysql-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-4GRUO2-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/mysql-python

    没有找到my_config.h

    你只需要在 yum install mysql-devel 就可以了



沪ICP备19023445号-2号
友情链接