【Bug】ERROR: Could not build wheels for opencv-python, which is required to install pyproject.toml-ba

报错信息:

ERROR: Could not build wheels for opencv-python, which is required to install pyproject.toml-based projects

【Bug】ERROR: Could not build wheels for opencv-python, which is required to install pyproject.toml-ba_第1张图片

今天在笔记本上新建了一个python虚拟环境,需要安装opencv-python

命令如下:

pip install opencv-python==4.3.0.38

【Bug】ERROR: Could not build wheels for opencv-python, which is required to install pyproject.toml-ba_第2张图片

本以为没啥事,会安装成功,意想不到的是,报错了!

【Bug】ERROR: Could not build wheels for opencv-python, which is required to install pyproject.toml-ba_第3张图片
【Bug】ERROR: Could not build wheels for opencv-python, which is required to install pyproject.toml-ba_第4张图片
最暴力的解决办法,换一个版本试试。。。。

pip install opencv-python==4.5.5.62

【Bug】ERROR: Could not build wheels for opencv-python, which is required to install pyproject.toml-ba_第5张图片
安装成功,没用报错。。。

上面报错的原因,应该是我电脑上没有Visual Studio有关

opencv-python==4.3.0.38和opencv-python==4.5.5.62两个包大小相差很大,里面的依赖应该不一样。

你可能感兴趣的:(debug,opencv,python,bug)