Can't install opencv package in a Raspberry pi
I got the same error and fixed it like this.
Try:

sudo apt install python-opencv libopencv-dev

y/n --> y

sudo apt install python python-pip

y/n --> y

pip install opencv-python
So I am doing a face recognition project in a Raspberry Pi. It is a django project and when I run the server I get this error: AttributeError: module 'cv2' has no attribute 'face'
I searched for the error and I came up with that I needed to install opencv-contrib-python
The problem is that when I try to install it the download gets to 99% and I get this: 'pip3 install opencv-contrib-pyt…' terminated by signal SIGKILL (Forced quit).
Does anyone know why this happens? how can I fix this? help is much appreciated