使用Conda和Spyder安装OpenCV [英] Installing OpenCV with Conda and Spyder

查看:359
本文介绍了使用Conda和Spyder安装OpenCV的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在Conda上安装OpenCV.我尝试运行许多命令,但没有一个起作用.例如,当我运行 conda install -c anaconda opencv (按照 https://anaconda.org/anaconda/opencv ),我收到此错误:

I'm having trouble installing OpenCV with Conda. I tried running numerous commands, none of which worked. For example, when I ran conda install -c anaconda opencv (as per https://anaconda.org/anaconda/opencv) I get this error:

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

   - opencv -> python[version='>=2.7,<2.8.0a0|>=3.5,<3.6.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0']

Your python: python=3.8

If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.

为什么会发生这种情况,如何在Spyder中安装OpenCV?

Why is this happening and how can I install OpenCV in Spyder?

谢谢.

推荐答案

Python 3.8相对较新.根据错误,看起来conda软件包管理器仍然不支持Python 3.8.

Python 3.8 is relatively new. And according to the error it looks like that conda package manager still does not support Python 3.8.

尝试使用以下命令下载:

Try downloading using this command:

pip install opencv-python

有关正确的指南,请参考 https://pypi.org/project/opencv-python/

For a proper guide, refer https://pypi.org/project/opencv-python/

这篇关于使用Conda和Spyder安装OpenCV的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆