Traceback (most recent call last): File "", line 1, in ImportError: No module named numpy.distutils Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'numpy' g++: internal compiler error: Terminated (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See for instructions. make[2]: *** [source_subfolder/modules/video/CMakeFiles/opencv_video.dir/opencl_kernels_video.cpp.o] Error 4 make[1]: *** [source_subfolder/modules/video/CMakeFiles/opencv_video.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... g++: internal compiler error: Terminated (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See for instructions. make[2]: *** [source_subfolder/modules/stitching/CMakeFiles/opencv_stitching.dir/src/stitcher.cpp.o] Error 4 make[2]: *** Waiting for unfinished jobs.... g++: internal compiler error: Terminated (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See for instructions. make[2]: *** [source_subfolder/modules/stitching/CMakeFiles/opencv_stitching.dir/src/seam_finders.cpp.o] Error 4 make[2]: *** [source_subfolder/modules/stitching/CMakeFiles/opencv_stitching.dir/src/timelapsers.cpp.o] Terminated make[1]: *** [source_subfolder/modules/stitching/CMakeFiles/opencv_stitching.dir/all] Terminated make: *** [all] Error 2 ERROR: Exiting with code: 5