install opencv3 on mac for python 3.6

LookingForSomething picture LookingForSomething · Apr 27, 2017 · Viewed 10.9k times · Source

I want to install opencv3 for python 3.6 on macOS Sierra. I have tried to use it through homebrew using this link http://www.pyimagesearch.com/2016/12/19/install-opencv-3-on-macos-with-homebrew-the-easy-way/ but I am getting this error

Error: opencv3: Does not support building both Python 2 and 3 wrappers

How to resolve this??

Answer

bianbian picture bianbian · May 3, 2017

brew install opencv3 --with-contrib --with-python3 --without-python