Skip to content

pip issues

opencv-python

> pip install opencv-python

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

try this:

> pip install opencv-python --only-binary=:all:
这将会强制下载二进制包,而不会使用源码进行编译。

注:其它pip安装时编译失败的库都可以尝试在其后面加--only-binary=:all: