CMake Warning at source_subfolder/cmake/OpenCVDetectPython.cmake:81 (message): CMake's 'find_host_package(PythonInterp 2.7)' found wrong Python version: PYTHON_EXECUTABLE=/opt/pyenv/versions/3.7.5/bin/python PYTHON_VERSION_STRING=3.7.5 Consider providing the 'PYTHON2_EXECUTABLE' variable via CMake command line or environment variables Call Stack (most recent call first): source_subfolder/cmake/OpenCVDetectPython.cmake:271 (find_python) source_subfolder/CMakeLists.txt:606 (include) Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'numpy' g++: fatal error: Terminated signal terminated program cc1plus compilation terminated. make[2]: *** [source_subfolder/modules/core/CMakeFiles/opencv_core.dir/build.make:298: source_subfolder/modules/core/CMakeFiles/opencv_core.dir/src/copy.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... g++: fatal error: Terminated signal terminated program cc1plus compilation terminated. make[2]: *** [source_subfolder/modules/core/CMakeFiles/opencv_core.dir/build.make:311: source_subfolder/modules/core/CMakeFiles/opencv_core.dir/src/count_non_zero.dispatch.cpp.o] Error 1 g++: fatal error: Terminated signal terminated program cc1plus compilation terminated. make[2]: *** [source_subfolder/modules/core/CMakeFiles/opencv_core.dir/build.make:324: source_subfolder/modules/core/CMakeFiles/opencv_core.dir/src/cuda_gpu_mat.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:1533: source_subfolder/modules/core/CMakeFiles/opencv_core.dir/all] Error 2 make: *** [Makefile:152: all] Error 2 ERROR: Exiting with code: 5