fatal error: Python.h: No such file or directory/ fatal error: numpy/ndarrayobject.h: No such file o
程序员文章站
2024-02-21 23:21:16
...
在移植opencv编译包到rk3399pro开发板上进行make install时,遇到问题及解决方法如下:
问题1:
/home/syl/software/opencv/modules/python/src2/cv2.cpp:17:10: fatal error: Python.h: No such file or directory
#include <Python.h>
解决方法:
sudo apt-get install python-dev
sudo apt-get install python3.7-dev
问题2:
/home/syl/software/opencv/modules/python/src2/cv2.cpp:33:10: fatal error: numpy/ndarrayobject.h: No such file or directory
#include <numpy/ndarrayobject.h>
解决方法:
sudo apt-get install python-numpy
上一篇: 详解SpringMVC解决跨域的两种方案
推荐阅读
-
fatal error: Python.h: No such file or directory/ fatal error: numpy/ndarrayobject.h: No such file o
-
fatal error: Python.h: No such file or directory #include “Python.h“
-
安装MySQLdb模块遭遇"fatal error: my_config.h: No such file or directory"的处理
-
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
-
fatal error: gnu/stubs-n64_hard_2008.h: No such file or directory
-
pi_kernel源码编译出现: fatal error: openssl/opensslv.h: No such file or directory
-
fatal error: openssl/opensslv.h: No such file or directory