fatal error: Python.h: No such file or directory
程序员文章站
2022-07-01 20:26:39
...
问题描述:Ubuntu下安装软件时报fatal error: Python.h: No such file or directory
问题原因:需要python2.7及python-dev,和python3.5及python3.5-dev。但是缺少这些依赖。
问题解决:缺哪个安装哪个!
# python2.7在Ubuntu中本身就有,故只安装python-dev即可
sudo apt-get install python-dev
sudo apt-get install python3.5
sudo apt-get install python3.5-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