解决环境:失败

Anv*_*esh 3 environment failed-installation python-3.x anaconda opencv3.0

当我尝试安装 OpenCV3 时,它显示此错误,并且正在安装其他库...

(base) C:\WINDOWS\system32>conda install -c menpo opencv3
Collecting package metadata (current_repodata.json): done
Solving environment: failed
Collecting package metadata (repodata.json): done
Solving environment: failed

UnsatisfiableError: The following specifications were found to be incompatible with each other:

  - _ipyw_jlab_nb_ext_conf -> ipywidgets -> widgetsnbextension[version='>=1.2.3'] -> notebook[version='>=4.2.0'] -> nbconvert -> bleach
  - bleach
  - ipywidgets -> widgetsnbextension[version='>=1.2.3'] -> notebook[version='>=4.2.0'] -> nbconvert -> bleach
  - jupyterlab -> jupyterlab_server[version='>=0.2.0,<0.3.0'] -> notebook -> nbconvert -> bleach
  - jupyterlab_server -> notebook -> nbconvert -> bleach
  - nbconvert -> bleach
  - notebook -> nbconvert -> bleach
  - pip -> python[version='>=3.6,<3.7.0a0']
  - widgetsnbextension -> notebook[version='>=4.2.0'] -> nbconvert -> bleach


Run Code Online (Sandbox Code Playgroud)

Sto*_*one 6

创建一个新的 conda 环境并从那里安装 opencv。默认 conda 环境中很可能存在依赖冲突。

conda create -n opencv4
conda activate opencv4
conda install -c conda-forge opencv
Run Code Online (Sandbox Code Playgroud)

至少这对我有用。