python或anaconda下安装opencv提示Error:No matching distribution found for opencv

错误提示:

ERROR: Could not find a version that satisfies the requirement python-opencv (from versions: none)
ERROR: No matching distribution found for python-opencv
在这里插入图片描述

解决方法:
cmd下
如果是python2,使用如下命令:

pip install opencv-python

如果是python3,使用如下命令:

pip3 install opencv-python

如果安装了anaconda,激活自己的anaconda下的python环境:

activate Env-python

然后使用以下命令:

pip3 install opencv-python

如果没有安装annaconda的话,貌似要把opencv-python换成python-opencv。

GitHub 加速计划 / opencv31 / opencv
216
19
下载
OpenCV: 开源计算机视觉库
最近提交(Master分支:1 天前 )
9196edd2 imgcodecs: bmp: support to write 32bpp BMP with BI_BITFIELDS #27559 ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [x] I agree to contribute to the project under Apache 2 License. - [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV - [x] The PR is proposed to the proper branch - [x] There is a reference to the original bug report and related work - [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [ ] The feature is well documented and sample code can be built with the project CMake 10 小时前
ee41f46b Renamed templated BlocksCompensator::feed method to exclude claches with base class pure virtual method 1 天前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐