我们如何在 anaconda 上安装 opencv?

2022-01-10 00:00:00 python pip anaconda

问题描述

我尝试在 Anaconda 上安装 OpenCV

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

(参考这里 Anaconda 找不到模块 cv2)

但都失败了.有人知道怎么安装吗?

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


解决方案

运行以下命令:

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

发现opencv3现在也可以了,运行如下命令:

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

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

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

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

conda config --add channels menpo

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

And then opencv can be installed by:

conda install opencv(or opencv3)

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

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

conda install -c clinicalgraphics vtk

相关文章