I am using Python on my Raspberry Pi 4B running Bullseye.
*****@raspberrypi:~ $ cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)" NAME="Raspbian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs" Static hostname: raspberrypi Icon name: computer Machine ID: d6f00b01670b4dad8366c0004d859a63 Boot ID: 5ca54ba5fe234c6096b37f0a2e6b0af5 Operating System: Raspbian GNU/Linux 11 (bullseye) Kernel: Linux 6.1.19-v8+ Architecture: arm64
I am trying to install Open-CV to use the library for a project I am working on. I have tried the following methods to install:
pip install opencv-python pip3 install opencv-python sudo apt install -y opencv-python sudo apt install -y python3-opencv
and I am sure I am missing a few other methods I have tried.
The error, every time:
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for opencv-python Failed to build opencv-python ERROR: Could not build wheels for opencv-python, which is required to install pyproject.toml-based projects
Yes, I have tried updating pip. I used
pip install --upgrade pip pip3 install --upgrade pip pip install --upgrade pip setuptools wheel pip3 install --upgrade pip setuptools wheel
How do I get opencv installed? What am I missing? Thank you in advance for your help.