I'm trying to install opencv 3.0 on MacOS 10.13 and when I use that instructions:
cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \
-D PYTHON3_LIBRARY=YYY \
-D PYTHON3_INCLUDE_DIR=ZZZ \
-D PYTHON3_EXECUTABLE=$VIRTUAL_ENV/bin/python \
-D BUILD_opencv_python2=OFF \
-D BUILD_opencv_python3=ON \
-D INSTALL_PYTHON_EXAMPLES=ON \
-D INSTALL_C_EXAMPLES=OFF \
-D BUILD_EXAMPLES=ON ..
The installation don't find my python 3 compiler and shows me that:
Python 3:
-- Interpreter: NO
-- Libraries: NO
-- numpy: NO (Python3 wrappers can not be generated)
-- packages path:
How may I fix it to find the python 3 compiler? I've installed the python3 using "brew install python3"