I am running Mac OS X 10.11 (El Capitan). I want to:
- Maintain my system version of Python as the default
- Install Python 3.5 alongside it
- Install OpenCV 3 and the Python bindings
I installed pyenv
and Python 3.5 by following this SO answer: https://stackoverflow.com/a/18671336/1410871
I activated my Python 3 installation and installed OpenCV 3 with Python 3 support like this:
pyenv shell 3.5.0
brew install opencv3 --with-python3
But when I launch an IPython shell and import cv2
, I get an error:
ImportError Traceback (most recent call last)
<ipython-input-1-72fbbcfe2587> in <module>()
----> 1 import cv2
ImportError: No module named 'cv2'
why?