question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
akatasonovcommented, Nov 3, 2020

Fixed it by installing !pip install -U opencv-python-headless==4.4.0.44 before installing albumentations

1reaction
creafzcommented, Nov 3, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found