Install opencv with conda

拟墨画扇 提交于 2019-12-04 19:32:47

I faced similar problem (only hdf5 conflicted). The reason is using incompatible version python.

How about creating new python3.6 environment before installing openCV? You can create new environment like this.

$ conda create -n py36 python=3.6

In addition you should also type this command to activate.

$ activate py36

I have had countless problems with installing opencv with conda This is my approach, create an env if you don't already have one

conda create -n py36 python=3.6
conda activate py36

Install opencv with pip NOT conda

pip install opencv-python

If your still having an issue, uninstall opencv, update ffmpeg

conda install -c conda-forge ffmpeg 

then rerun pip

Create a complete new environment and let conda deal with compatibilities:

conda create -n cv -c conda-forge opencv matplotlib

This will create a new environment named "cv" with python, opencv and matplotlib.

Today (Out. 11th, 2019) it installed:

  • Python 3.7.3
  • OpenCV 4.1.1
  • MatPlotLib 3.1.1
  • Numpy 1.17.2
  • ... and all other dependencies.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!