opencv-python icon indicating copy to clipboard operation
opencv-python copied to clipboard

Building wheel taking an extremely long time

Open charliehoward opened this issue 8 months ago • 4 comments

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
  • [x] This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.)
  • [x] 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")
  • [x] I'm using the latest version of opencv-python

charliehoward avatar Nov 29 '23 18:11 charliehoward

It's been about 3/4 hours now and it's at 100% but it's been stuck on [100%] Building CXX object modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o for about 20 minutes, think I'm going to give up. Any ideas on a fix?

charliehoward avatar Nov 29 '23 21:11 charliehoward

It takes several hours to build OpenCV on RPi. Nothing unusual there.

skvark avatar Dec 12 '23 08:12 skvark

Yeah not 10+

charliehoward avatar Dec 12 '23 11:12 charliehoward

Im trying to compile opencv on a pi zero, iv done it with a very lite setup before, it took 8hours but worked, if youn think it's crash just leave it takes AGES so now im trying to use a setup for ml and object detection. So currently it been compiling for 24hours and is at 34percent 👐🧘‍♂️ so im looking at a few more days 😅 strap in

Only1leddy avatar Jun 28 '24 00:06 Only1leddy