Ask Your Question
4

Why is the installation of `opencv-contrib-python` stuck at "building wheels for opencv-contrib-python" on Raspberry Pi 3?

asked 2023-05-26 08:41:56 +0000

nofretete gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-05-26 09:09:01 +0000

huitzilopochtli gravatar image

There could be multiple reasons why the installation of opencv-contrib-python is stuck at "building wheels for opencv-contrib-python" on Raspberry Pi 3. Some common reasons are:

  1. Insufficient RAM: The Raspberry Pi 3 has limited RAM, and building the wheels for opencv-contrib-python can take up a lot of memory. If the device runs out of memory, the installation process will become slow, or it might even get stuck. Adding a swap file can help to address this issue.

  2. Slow Internet connection: Building the wheels for opencv-contrib-python requires downloading and compiling many dependencies. A slow internet connection can make the download process slower, which will, in turn, make the installation slower.

  3. Unoptimized code: The code for building the wheels might not be optimized for the Raspberry Pi 3's ARM processor. This can cause the installation to become slow or get stuck during the build process.

To resolve the issue, try increasing the device's RAM, use a faster internet connection, and check for any updates or optimizations for the installation code.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-26 08:41:56 +0000

Seen: 9 times

Last updated: May 26 '23