原因是 python-dev包没有安装 根据Py2还是py3 sudo apt-get install python-dev 或者 sudo apt-get install python3-dev 安装完后,再次安装即可成功…
Issue       I encountered an error when I run the python script which need to import the module of "MySQLdb".The error shows like this:   [root@docker1 script]# python Xtrabackup.py Traceback (most recent call last):   File "backup.py"…
解决方法: 安装python-devel即可,注意,不是python-dev yum -y install python-devel…
ubuntu安装python qingstor-sdk, src/MD2.c:31:20: fatal error: Python.h: No such file or directory compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 Failed building wheel for pycrypto 解决方法: apt-get install python3.6-…
参考: 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…
装一台新服务器环境的时候,装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   之后再运行安装,问题解决.…
1 异常信息 usr/include/python3.6m -c psutil/_psutil_common.c -o build/temp.linux-x86_64-3.6/psutil/_psutil_common.o psutil/_psutil_common.c::: fatal error: Python.h: No such file or directory #include <Python.h> ^ compilation terminated. error: command…
在linux命令行安装包时报错 src/MD2.c:31:20: fatal error: Python.h: No such file or directory 原因:缺少了python的dev 解决方法: $ sudo apt-get install python-dev…
系统环境:CentOS 7.5是最小化安装的 编译信息 编译选项: root@Server01 zabbix-]# ./configure --prefix=/usr/share/applications/zabbix --enable-server --enable-agent --with-mysql=/usr/bin/mysql_config_editor --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2=/usr/li…
在搭建Flask框架安装mysqlclient模块时候老是报fatal error: Python.h:错误,折腾老半天,百度了老半天看了不少大神帖子,就是没解决, 后来发现这不是个BUG,都是自己的错,自己的锅自己背着以后不能背. 这的确不是bug,而是pip3没有安装,解决方法安装pip3就好 sudo apt install python3-pip…