Installing OpenCV with Anaconda

May 2019 | Dios Kurniawan

OpenCV is an open-source Computer Vision library which can be used in Python. Installing OpenCV in MacOS is a bit cumbersome since there is no binaries provided in the website, but you can do this easily with the help of Anaconda. This is what I can share with you to install OpenCV with Anaconda:

  1. Open terminal, and type: conda create –name ComputerVision python=3.7
  2. Install OpenCV: conda install -c menpo opencv
  3. Activate: source activate ComputerVision
  4. Test your installation: import cv2 as cv

That’s all.