解决OpenCV-contrib-python安装错误:'ERROR: Could not find a version that satisfies the requirement opencv_contrib_python-3.4.11.45-cp39-cp39-win_amd64'
您在安装opencv-contrib-python时遇到了错误'ERROR: Could not find a version that satisfies the requirement opencv_contrib_python-3.4.11.45-cp39-cp39-win_amd64',这可能是由于您的Python版本不兼容导致的。
首先,请检查您的Python版本是否为3.9。如果您的Python版本不是3.9,则需要安装适用于您的Python版本的opencv-contrib-python包。
方法一:使用pip安装
您可以尝试使用以下命令安装opencv-contrib-python:
pip install opencv-contrib-python
方法二:手动下载安装包
如果您仍然遇到问题,您可以前往以下网站查找适用于您的Python版本的opencv-contrib-python包:
https://pypi.org/project/opencv-contrib-python/#files
下载与您的Python版本和操作系统匹配的opencv-contrib-python包,并使用以下命令进行安装:
pip install <path to downloaded file>
其中
例如:
如果您下载的文件名为'opencv_contrib_python-3.4.11.45-cp39-cp39-win_amd64.whl',并且将其保存到您的'Downloads'文件夹中,则安装命令如下:
pip install Downloads/opencv_contrib_python-3.4.11.45-cp39-cp39-win_amd64.whl
希望以上方法可以帮助您解决问题。
原文地址: https://www.cveoy.top/t/topic/knke 著作权归作者所有。请勿转载和采集!