安装opencv时报错:ERROR: Could not build wheels for opencv-python, 解决办法

在安装opencv时 输入了pip install opencv命令后刚开始没问题,但是后续出现报错,Building wheel for opencv-python (pyproject.toml) ... error或者ERROR: Could not build wheels for opencv-python, which is required to install pyproject.toml-based projects。

安装opencv时报错:ERROR: Could not build wheels for opencv-python, 解决办法_第1张图片

 报错原因是安装的python版本与opencv不支持,所以需要指定相关的版本来安装opencv,即命令修改为

pip install opencv-python==4.3.0.38

即可安装成功。安装opencv时报错:ERROR: Could not build wheels for opencv-python, 解决办法_第2张图片

 

你可能感兴趣的:(opencv,python,人工智能)