我无法在Conda上安装OpenCV。我尝试运行许多命令,但没有一个起作用。例如,当我运行时conda install -c anaconda opencv
(按照https://anaconda.org/anaconda/opencv),我会收到此错误:
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?
谢谢。
Python 3.8相对较新。并且根据错误,似乎conda软件包管理器仍然不支持Python 3.8。
尝试使用以下命令下载:
pip install opencv-python
有关正确的指南,请参阅https://pypi.org/project/opencv-python/
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句