[Python] Install opencv-python-headless error when installing albumments

The installation of albumentations in the python environment appears. This library is often used for image enhancement and has a great reputation in the cv field. After installing with the command below

pip install albumentations

Just reported ERROR:Could not build wheels for opencv-python-headless which use PEP 517 and cannot be installed directly.
The albumentations library depends on opencv. When installing directly using the pip command, the albumentations will default to opencv-python-headless as the default dependency of opencv for installation. Since there are multiple versions of the opencv series, we can choose to bypass the opencv that the albumentations depend on. Point to the installed opencv-python library. Just enter the following command:

pip install albumentations --no-binary qudida,albumentations

Guess you like

Origin blog.csdn.net/lingchen1906/article/details/128738410