opencv / opencv/opencv-python

Building wheel taking an extremely long time

Open
#923 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Python
Stars
5.4k
Forks
1k
Avg merge
22h 17m
Merged PRs (30d)
3

Description

Expected behaviour

For it to install quickly.

Actual behaviour

If you run pip3 install opencv-python the installation appears to get stuck at Building wheel for opencv-python. I left it for about an hour with no visible progress.
I've since run pip3 install opencv-python --verbose and as of writing I'm an hour in at 28%.

Steps to reproduce
  • See above
  • Raspberry Pi OS Bullseye
  • ARM
  • 4.8.1.78
Issue submission checklist
  • This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.)
  • I have read the README of this repository and understand that this repository provides only an automated build toolchain for OpenCV Python packages (there is no actual OpenCV code here)
  • The issue is related to the build scripts in this repository, to the pre-built binaries or is a feature request (such as "please enable this additional dependency")
  • I'm using the latest version of opencv-python

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce pip3 install opencv-python --verbose on Raspberry Pi OS Bullseye with ARM and version 4.8.1.78, then review the build output to identify where the wheel build spends its time. Done should mean determining whether the delay is expected or identifying a build-toolchain change that measurably improves installation time.

Written by the indexing model from the issue text.

Assessment

Tech stack
opencv, python, raspberry-pi
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.