[Python] Install Opencv on Raspberrypi

Discussão em 'Python' iniciado por Stack, Junho 2, 2025.

  1. Stack

    Stack Membro Participativo

    i am tring install opencv on my raspberrypi 5(os: 32-bit lite).

    i try the code to install opencv:

    sudo apt-get install python3-opencv -y

    but encounter the error below:

    The following packages have unmet dependencies:
    python3-opencv : Depends: python3 (< 3.10) but 3.11.2-1 is to be installed
    Depends: python3-numpy (>= 1:1.16.0~rc1) but it is not going to be installed
    Depends: python3-numpy-abi9
    Depends: libopencv-contrib4.5 (>= 4.5.1+dfsg) but it is not going to be installed
    Depends: libopencv-highgui4.5 (>= 4.5.1+dfsg) but it is not going to be installed
    Depends: libopencv-imgcodecs4.5 (>= 4.5.1+dfsg) but it is not going to be installed
    Depends: libopencv-videoio4.5 (>= 4.5.1+dfsg) but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.



    it seem that the version of python is too high. my python version is 3.11.2. do i need remove the previous python and install a new one with version 3.9?

    i have no idea how to fix it. plz give me some advice, thank

    Continue reading...

Compartilhe esta Página