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

Error message:

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

insert image description here

Created a new python virtual environment on the notebook today, need to install opencv-python

The command is as follows:

pip install opencv-python==4.3.0.38

insert image description here

I thought it would be fine and the installation would be successful, but unexpectedly, an error was reported!

insert image description here
insert image description here
The most violent solution, try another version. . . .

pip install opencv-python==4.5.5.62

insert image description here
The installation was successful, no error was reported. . .

The reason for the above error should be that there is no Visual Studio on my computer.

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

Guess you like

Origin blog.csdn.net/AugustMe/article/details/126402049