Ask Your Question

Revision history [back]

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.