pythoninterp error_生成OpenCV cmake错误:找不到PythonInterp

为了构建OpenCV,我在终端的~/OpenCV/build目录中运行了这个命令:cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/path/to/opencv-3.0.0/build -D PYTHON2_LIBRARY=/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/bin

-D PYTHON2_INCLUDE_DIR=/usr/local/Frameworks/Python.framework/Headers -D PYTHON2_PACKAGES_PATH=/usr/local/lib/python2.7/site-packages -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D OPENCV_EXTRA_MODULES_PATH=/path/to/opencv_contrib-3.0.0/modules ../

但不管发生什么,我在回溯中都看到这个错误:(找不到pythoninterpr:)Traceback (most recent call last):

File "", line 1, in

ImportError: No module named numpy.distutils

-- Could NOT find PythonInterp: Found unsuitable version "2.7.11",

but required is at least "3.4" (found /usr/local/bin/python)

-- Could NOT find PythonInterp: Found uns

你可能感兴趣的:(pythoninterp,error)