Tuesday, May 9, 2017

How to Install OpenCV 3 for Python3 through Conda in OSX?

How to Install OpenCV 3 for Python3 through Conda in OSX?

System using Python 3.

$ python --version
Python 3.6.1 :: Anaconda custom (x86_64)

While typing the following command:

$ anaconda show menpo/opencv3

It shows:

Using Anaconda API: https://api.anaconda.org
Name:    opencv3
Summary:
Access:  public
Package Types:  conda
Versions:
   + 3.1.0
   + 3.2.0

To install this package with conda run:
     conda install --channel https://conda.anaconda.org/menpo opencv3

So, just type the last line of command above:

$ conda install --channel https://conda.anaconda.org/menpo opencv3

or

$ conda install -c menpo opencv3=3.2.0

(from https://anaconda.org/menpo/opencv3)

Done!