I am trying to install opencv on my raspberry pi 5 (os: 32-bit lite).
I've tried 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. How do I fix this?
apt-getuseapt(unless you are scripting and prepared to handle exceptions)