Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how could we install opencv on anaconda?

I tried to install OpenCV on Anaconda

pip install cv2
pip install opencv
conda install opencv
conda install -c https://conda.binstar.org/jjhelmus opencv

(refered here Anaconda doesn't find module cv2)

but all failed. Does anybody know how to install this?

like image 508
JonghoKim Avatar asked Jun 25 '14 05:06

JonghoKim


2 Answers

Run the following command:

conda install -c https://conda.binstar.org/menpo opencv

I realized that opencv3 is also available now, run the following command:

conda install -c https://conda.binstar.org/menpo opencv3

Edit on Aug 18, 2016: You may like to add the "menpo" channel permanently by:

conda config --add channels menpo

And then opencv can be installed by:

conda install opencv(or opencv3)

Edit on Aug 14, 2017: "clinicalgraphics" channel provides relatively newer vtk version for very recent python3

conda install -c clinicalgraphics vtk
like image 183
Harsh Kumar Narula Avatar answered Oct 21 '22 11:10

Harsh Kumar Narula


I guess

http://answers.opencv.org/question/17536/install-opencv-for-anaconda-ipython/

it would be an answer

If you compile OpenCV from source, and Anaconda is your default python interpretor 
(CMake rule PYTHON_PACKAGES_PATH = C:\Anaconda\Lib\site-packages), 
then the install rule will copy cv2.pyd to C:\Anaconda\Lib\site-packages.
Otherwise, you could do it manually, and make sure OpenCV libs are in the PATH.

Still I don't know what is CMake rule(?) and "install rule".

like image 6
JonghoKim Avatar answered Oct 21 '22 11:10

JonghoKim