It takes more than 30 minutes to install, and is stuck at installation for more than 30 minutes.
Building wheel for opencv-python (PEP 517) ...
pip install opencv-python
Yeah, building from source takes time. It's normal for heavy C++ projects such as OpenCV. And if you are wondering why that happens: there are no pre-built wheels for macOS 10.12. Pre-built wheels are provided only for 10.13 and later: https://github.com/skvark/opencv-python#backward-compatibility
Solutions: upgrade your OS or just wait for the compilation to finish.
@skvark Headsup, now opencv-python only provides pre-built wheels for 10.15 and later with commit: 6336ca866644dc5daf64831a4352c23479e1d248 that pins macos-latest or macos-10.15 for building these binaries. See:
https://github.com/opencv/opencv-python/blob/86c3d2a285c16f95a66c07275187da3f95be0af5/.github/workflows/build_wheels_macos.yml#L24-L30
@asmorkalov please reflect this update in README too.
Most helpful comment
@asmorkalov please reflect this update in README too.