我们怎么能在anaconda上安装opencv?

Jon*_*Kim 11 python pip anaconda

我试图在Anaconda上安装OpenCV

pip install cv2
pip install opencv
conda install opencv
conda install -c https://conda.binstar.org/jjhelmus opencv
Run Code Online (Sandbox Code Playgroud)

(这里提到Anaconda找不到模块cv2)

但都失败了.有人知道如何安装吗?

Har*_*ula 38

运行以下命令:

conda install -c https://conda.binstar.org/menpo opencv
Run Code Online (Sandbox Code Playgroud)

我意识到opencv3现在也可用,运行以​​下命令:

conda install -c https://conda.binstar.org/menpo opencv3
Run Code Online (Sandbox Code Playgroud)

2016年8月18日编辑:您可能希望通过以下方式永久添加"menpo"频道:

conda config --add channels menpo
Run Code Online (Sandbox Code Playgroud)

然后opencv可以通过以下方式安装:

conda install opencv(or opencv3)
Run Code Online (Sandbox Code Playgroud)

编辑于2017年8月14日:" clinicalgraphics "频道为最近的python3提供了相对较新的vtk版本

conda install -c clinicalgraphics vtk
Run Code Online (Sandbox Code Playgroud)


Jon*_*Kim 5

我猜

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

这将是一个答案

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.
Run Code Online (Sandbox Code Playgroud)

我还不知道什么是CMake规则(?)和"安装规则".