Had some issues today getting OpenCV library rolling on my MacOS (Using Python 3). I was getting an error after the initial install:
failed with this error:
I was fortunate enough to find the following article: https://solarianprogrammer.com/2016/11/29/install-opencv-3-with-python-3-on-macos/
I use Anaconda to manage my Python environments. Here is what I did to resolve the issue. NOTE: I could not get it to work on Python version newer than 3.5.2. I also use PyCharm as my interpreter, I had to refresh my interpreter for the project for the changes to take affect.
Switch to your desired Python Environment.