Version conflict error while installing albumentation on python 3.6.8 with opencv-python

247 Views Asked by At

I'm trying to install albumentations on python 3.6.8. However, the installation is failing with the following error

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

This is happening because my Python version is 3.6.8 and the installed opencv-python version is 3.4.13.47 and albumentation is trying to install the latest version of opencv-python (4.7.x). As per the install instructions of albumentations as given here, there is a flag to force-use the existing opencv version

pip install -U albumentations --no-binary qudida, albumentations

However, even after using these flags, albumentation is trying to install opencv-python-4.7.0.72, and this is failing.

How can we force this to use the existing opencv version?

0

There are 0 best solutions below