in Data Science

Running cv2 in virtualenv on Mac

You may install cv2 using one of the available guides, f.e. this one.

And then just symlink so files into required virtualenv:

ln -s /usr/local/opt/opencv/lib/python2.7/site-packages/cv2.so /Users/user/.virtualenv/virtualenv/lib/python2.7/site-packages/