[Python] Raspberry Pi 4 pip install opencv-python

Discussão em 'Python' iniciado por Stack, Julho 6, 2025.

  1. Stack

    Stack Membro Participativo

    I try to install opencv on my raspberry pi 4

    pip install opencv-python


    I get the following error


    Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting opencv-python ERROR: Could not find a version that satisfies the requirement opencv-python (from versions: none) ERROR: No matching distribution found for opencv-python
    ​

    I use 2019-07-10-raspbian-buster-full

    $ python -V


    Python 3.7.3
    ​

    $ pip --version


    pip 19.2.1 from /home/pi/envs/django_env/lib/python3.7/site-packages/pip (python 3.7)
    ​

    I saw some recommended ways, but none of them work:

    https://raspberrypi.stackexchange.c...n-of-opencv-contrib-python-through-pip3-fails

    sudo pip3 install opencv-contrib-python==3.4.4.19


    https://www.pyimagesearch.com/2018/09/19/pip-install-opencv/

    $ sudo apt-get install libhdf5-dev libhdf5-serial-dev libhdf5-100
    $ sudo apt-get install libqtgui4 libqtwebkit4 libqt4-test python3-pyqt5
    $ sudo apt-get install libatlas-base-dev
    $ sudo apt-get install libjasper-dev

    pip install opencv-contrib-python


    I remember that it always worked on my other raspberry pis (2b and 3). Is there an option to install opencv on the raspberry pi 4?

    Continue reading...

Compartilhe esta Página