Pip installation stuck on `Building wheel for opencv-python-headless`
See original GitHub issue🐛 Bug
Description is as explained in title. Been waiting for 5 minutes as of writing this.
To Reproduce
Steps to reproduce the behavior:
pip install albumentations
Expected behavior
Installation goes through as normal
Environment
On Google Colab, or on MacOS 10.15.7. I have not tested other platforms. This has started happening very recently. Last time I installed Albumentations without an issue was several days ago. Albumentations version is whatever is in Pypi at the time of writing this.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Top Results From Across the Web
installation is stuck at building wheel · Issue #391 - GitHub
I expected to module to install very fast. Actual behaviour. Building wheel for opencv-python (PEP 517) takes forever to run. Steps to reproduce....
Read more >`Building wheel for opencv-python (PEP 517) ... -` runs forever
This error comes because to download it, the package should first build thousands of dependencies for wheels as opencv is a big package....
Read more >Could not build wheels for opencv-python which use PEP 517 ...
To solve the error "Could not build wheels for opencv-python which use PEP 517 and cannot be installed directly", run the pip install...
Read more >Building wheel time out for opencv-contrib-python - Reddit
I have spent hours trying every possible solution including rebuilding the Pi from scratch. The following solutions have been tried.
Read more >Python OpenCV installation error - NXP Community
Solved: I am trying to install OpenCV package for Python on my 8MM NavQ Computer using pip package ... Building wheels for collected...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fixed it by installing !pip install -U opencv-python-headless==4.4.0.44 before installing albumentations
It looks like the problem is related to uploading a new release of OpenCV to PyPI and should be resolved automatically when all wheels with the latest version of OpenCV will be uploaded - https://github.com/skvark/opencv-python/issues/411. In the meantime, a workaround from @akatasonov should help.