I have three versions of python:
python (2.7.10, default systemwide version shipped with MacOS)
python2 (2.7.15, installed with brew)
python3 (3.6.5, installed with brew)
I installed opencv for python2 and python3 using pip2 and pip3, respectively. However, I have a matlab application (VOT-toolkit) which generates a command as: /usr/bin/python -c "import cv2" which fails since /usr/bin/python refers to the systemwide python version which does not have opencv installed.
Is there a way I can install opencv for the systemwide python version? (If possible, directly using pip without having to build from sources)
Thanks!
/usr/bin/python -m pip install opencv-python? This runs the module pip for the selected python and installs the desired module - api55