当我尝试安装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发布于 2019-07-26 15:20:33
创建一个新的conda环境并从那里安装opencv。在默认的conda环境中,很可能存在依赖冲突。
conda create -n opencv4
conda activate opencv4
conda install -c conda-forge opencv至少这对我来说是有效的。
发布于 2021-05-17 04:12:33
问题是通道优先级是严格的。尝试设置以下可以解决此问题的设置:
conda config --set channel_priority flexiblehttps://stackoverflow.com/questions/57035522
复制相似问题