我是靠谱客的博主 矮小楼房,最近开发中收集的这篇文章主要介绍python中安装opencv一直说不是内部或外部文件_python - OpenCV安装错误:没有这样的文件或目录“ pyopencv_generated_include.h” - 堆栈内存溢出...,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

尝试在linux 18.0.4安装OpenCV时,在sudo make install命令后,以下错误停止了执行。

[ 83%] Linking CXX executable ../../bin/opencv_perf_stitching

[ 83%] Built target opencv_perf_stitching

[ 83%] Generate files for Python bindings and documentation

[ 83%] Built target gen_opencv_python_source

Scanning dependencies of target opencv_python3

[ 83%] Building CXX object modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o

/home/kk/opencv-3.4.1/modules/python/src2/cv2.cpp:22:10: fatal error: pyopencv_generated_include.h: No such file or directory

#include "pyopencv_generated_include.h"

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

modules/python3/CMakeFiles/opencv_python3.dir/build.make:62: recipe for target 'modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o' failed

make[2]: *** [modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o] Error 1

CMakeFiles/Makefile2:28439: recipe for target 'modules/python3/CMakeFiles/opencv_python3.dir/all' failed

make[1]: *** [modules/python3/CMakeFiles/opencv_python3.dir/all] Error 2

Makefile:162: recipe for target 'all' failed

make: *** [all] Error 2

知道会发生什么吗?

我有CUDA 9.2,Python 3.6.5。 遵循此处给出的安装说明。: https ://www.pyimagesearch.com/2018/05/28/ubuntu-18-04-how-to-install-opencv/

最后

以上就是矮小楼房为你收集整理的python中安装opencv一直说不是内部或外部文件_python - OpenCV安装错误:没有这样的文件或目录“ pyopencv_generated_include.h” - 堆栈内存溢出...的全部内容,希望文章能够帮你解决python中安装opencv一直说不是内部或外部文件_python - OpenCV安装错误:没有这样的文件或目录“ pyopencv_generated_include.h” - 堆栈内存溢出...所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(52)

评论列表共有 0 条评论

立即
投稿
返回
顶部