I pip installed cv2 the opencv2 python lib
pip install cv2
I also have opencv installed on my machine using
brew install opencv
.
it installed correctly and if I try to run it again I get
Requirement already satisfied (use --upgrade to upgrade): cv2 in /Library/Python/2.7/site-packages
however when I try to import it I get an error thats it not found. To make it simple I'm gonna run python through my terminal:
Python 2.7.10 (default, Jul 14 2015, 19:46:27)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named cv2
>>>