Your screenshot shows you doing a pip install from the python terminal which is wrong. Do that outside the python terminal. Also the package I believe you want is:
Copypip install opencv-python
Since you're running on Windows, I might look at the official install manual: https://breakthrough.github.io/Installing-OpenCV
opencv2 is ONLY compatible with Python3 if you do so by compiling the source code. See the section under opencv supported python versions: https://pypi.org/project/opencv-python
Answer from Andrew Long on Stack OverflowYour screenshot shows you doing a pip install from the python terminal which is wrong. Do that outside the python terminal. Also the package I believe you want is:
Copypip install opencv-python
Since you're running on Windows, I might look at the official install manual: https://breakthrough.github.io/Installing-OpenCV
opencv2 is ONLY compatible with Python3 if you do so by compiling the source code. See the section under opencv supported python versions: https://pypi.org/project/opencv-python
There is a problem with pylint, which I do not completely understood yet.
You can just import OpenCV with:
from cv2 import cv2

» pip install opencv-python
Installed opencv but having trouble importing it
Issue "ModuleNotFoundError: No module named 'cv2'" although opencv is installed
Pip install works but I can't import "Fer and CV2"
How can I install OpenCV for Python? : r/learnpython
Videos
» pip install cv2-tools