_mysql.c:29:20: error: Python.h: No such file or directory

在Centos系统中安装

pip install MySQL-python 提示:

_mysql.c:29:20: error: Python.h: No such file or directory
_mysql.c:40:26: error: structmember.h: No such file or directory

解决方法:
yum install python-devel

#yum install mysql-devel.x86_64

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

时间: 2024-08-06 07:56:07

_mysql.c:29:20: error: Python.h: No such file or directory的相关文章

plugins/python/uwsgi_python.h:2:20: fatal error: Python.h: No such file or directory

装一台新服务器环境的时候,装uwsgi报错: plugins/python/uwsgi_python.h:2:20: fatal error: Python.h: No such file or directory #include <Python.h> 查了一下解决办法: yum install python-devel.x86_64   之后再运行安装,问题解决.

fatal error: Python.h: No such file or directory 解决

[常见错误] fatal error: Python.h: No such file or directory 环境场景 系统: Parrot Linux软件: 系统python默认版本2.7 PyCharm默认版本Python3.5场景: Build pycrypto-2.6.1 失败提示: building 'Crypto.PublicKey._fastmath' extension x86_64-linux-gnu-gcc -pthread -fwrapv -Wall -Wstrict-p

Ubuntu下 fatal error: Python.h: No such file or directory 解决方法

参考: fatal error: Python.h: No such file or directory Ubuntu下 fatal error: Python.h: No such file or directory 解决方法 根据使用的Python版本安装python-dev库. sudo apt-get install python-dev # for python2.x installs sudo apt-get install python3-dev # for python3.x i

(诊断)处理错误fatal error: Python.h: No such file or directory

安装与Python版本对应的 python-dev 即可,比如: $ sudo apt-get install python2.7-dev

(ubuntu) pip install scandir 时出现错误 fatal error: Python.h: No such file or directory

安装 jupyter时遇到这个问题,在这里查到了解决方法,特记录一下. 解决方式为: 先安装 python-dev: $ sudo apt-get install python-dev 然后再安装需要的包: pip install scandir

ubuntu 安装 regex模块时 fatal error: Python.h: No such file or directory

原因是 python-dev包没有安装 根据Py2还是py3 sudo apt-get install python-dev 或者 sudo apt-get install python3-dev 安装完后,再次安装即可成功 原文地址:https://www.cnblogs.com/xqnq2007/p/8128282.html

安装MySQLdb模块遭遇&quot;fatal error: my_config.h: No such file or directory&quot;的处理

Issue       I encountered an error when I run the python script which need to import the module of "MySQLdb".The error shows like this: [[email protected] script]# python Xtrabackup.py Traceback (most recent call last): File "backup.py"

编译Busybox时,出现错误fatal error: curses.h: No such file or directory

1 scripts/kconfig/mconf.c: In function ‘exec_conf’: 2 scripts/kconfig/mconf.c:481:2: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result [-Wunused-result] 3 pipe(pipefd); 4 ^ 5 SHIPPED scripts/kconfig/zconf.tab.c 6 SH

fatal error: pcre.h: No such file or directory

/usr/include/php5/ext/pcre/php_pcre.h:29:18: fatal error: pcre.h: No such file or directory apt-get update apt-get install libpcre3 libpcre3-dev