fatal error: Python.h: No such file or directory
程序员文章站
2022-07-01 20:30:39
...
running build
running build_py
copying xattr/__init__.py -> build/lib.linux-x86_64-2.7/xattr
copying xattr/constants.py -> build/lib.linux-x86_64-2.7/xattr
copying xattr/tool.py -> build/lib.linux-x86_64-2.7/xattr
running build_ext
building 'xattr._xattr' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c xattr/_xattr.c -o build/temp.linux-x86_64-2.7/xattr/_xattr.o
xattr/_xattr.c:1:20: fatal error: Python.h: No such file or directory
找了下python环境, 确实没有这玩意,所以就搜索了下,发现是在python-dev包里。
安装新版本的MYSQLDB 也要这玩意.....
Solved by following command:
apt-get install python-dev
上一篇: 莴苣和鸡蛋谣言,谁说莴苣和鸡蛋不能一起吃
下一篇: 蚵仔煎是哪里的美食,它是用什么做的
推荐阅读
-
在Linux中修复“fatal error: x264.h: No such file or directo”错误的方法
-
NET下编译C++代码时出现fatal error C1083: 无法打开包含文件:“iostream.h”: No such file or director
-
Python Error: /usr/bin/env: python3: No such file or directory
-
VMWare 15 Error on Ubuntu 18.4 - Could not open /dev/vmmon: No such file or directory
-
error trying to exec 'cc1plus': execvp: No such file or directory
-
Error: ENOENT: no such file or directory, uv_cwd Error: Cannot find module
-
Linux内核编译时出现fatal error: openssl/opensslv.h: No such file or directory错误的解决办法
-
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
-
scripts/sign-file.c:25:30: fatal error: openssl/opensslv.h: No such file or directory
-
交叉编译BusyBox 构建根文件系统出错fatal error: gnu/stubs-soft.h: No such file or directory