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 Overflow
🌐
PyPI
pypi.org › project › opencv-python
opencv-python · PyPI
A: It's easier for users to understand opencv-python than cv2 and it makes it easier to find the package with search engines. cv2 (old interface in old OpenCV versions was named as cv) is the name that OpenCV developers chose when they created the binding generators. This is kept as the import name ...
      » pip install opencv-python
    
Published   Feb 05, 2026
Version   4.13.0.92
Discussions

Installed opencv but having trouble importing it
Hi all, I recently downloaded anaconda python in order to work on an opencv personal project. I installed opencv using pip install opencv-contrib-python, where it installed successfully. Now, when I type import cv2 in my .py file, I get the following error: ModuleNotFoundError: No module named ... More on discuss.python.org
🌐 discuss.python.org
3
0
April 7, 2024
Issue "ModuleNotFoundError: No module named 'cv2'" although opencv is installed
There was an error while loading. Please reload this page More on github.com
🌐 github.com
15
May 22, 2024
Pip install works but I can't import "Fer and CV2"
Hello, I have PIP installed “fer” and “opencv-python” but I can’t import them. My commands to install are: pip install opencv-python pip install fer These worked. My python code is: import cv2 from fer import FER Both imports do not work. They both fail with a similar error: %Run ... More on discuss.python.org
🌐 discuss.python.org
7
0
August 26, 2023
How can I install OpenCV for Python? : r/learnpython
🌐 r/learnpython
🌐
OpenCV
docs.opencv.org › 4.13.0 › d5 › de5 › tutorial_py_setup_in_windows.html
OpenCV: Install OpenCV-Python in Windows
In the solution explorer, right-click on the Solution (or ALL_BUILD) and build it. It will take some time to finish. Again, right-click on INSTALL and build it. Now OpenCV-Python will be installed. Open Python IDLE and enter 'import cv2 as cv'. If no error, it is installed correctly.
🌐
Quora
quora.com › How-can-I-import-CV2-in-Python-3-7
How to import CV2 in Python 3.7 - Quora
Answer (1 of 5): For anaconda package 1.goto anaconda prompt(anaconda3) 2.type this pip install opencv-python==3.4.2.17 ( make sure your laptop is connected to internet)
🌐
GeeksforGeeks
geeksforgeeks.org › python › how-to-install-opencv-for-python-in-windows
How to Install OpenCV for Python on Windows - GeeksforGeeks
February 7, 2026 - python -c "import cv2; print(cv2.__version__)" If a version number prints, OpenCV is installed and ready to use. Verifying OpenCV Installation · Comment · Article Tags: Article Tags: Python · OpenCV · python-basics · Python-OpenCV · ...
🌐
Mimo
mimo.org › tutorials › python › how-to-install-opencv-in-python
How to Install OpenCV in Python
After creating and activating a virtual environment, install OpenCV there: ... The path should point inside your virtual environment folder (often .venv). ... python -m pip install opencv-python python -c "import cv2; print(cv2.__version__)" python -c "import sys; print(sys.executable)"
🌐
CodeGenes
codegenes.net › blog › how-to-import-cv2-in-python
Mastering cv2 Import in Python: A Comprehensive Guide — codegenes.net
The simplest way to install OpenCV is via pip. Open your terminal or command prompt and run the following command: ... If you are using Anaconda or Miniconda, you can install OpenCV using the conda package manager.
Find elsewhere
🌐
Python Programming
pythonprogramming.net › loading-images-python-opencv-tutorial
OpenCV with Python Intro and loading Images tutorial
import cv2 import numpy as np from matplotlib import pyplot as plt img = cv2.imread('watch.jpg',cv2.IMREAD_GRAYSCALE) cv2.imshow('image',img) cv2.waitKey(0) cv2.destroyAllWindows()
🌐
Python.org
discuss.python.org › python help
Installed opencv but having trouble importing it - Python Help - Discussions on Python.org
April 7, 2024 - Hi all, I recently downloaded anaconda python in order to work on an opencv personal project. I installed opencv using pip install opencv-contrib-python, where it installed successfully. Now, when I type import cv2 in …
🌐
DataFlair
data-flair.training › blogs › install-opencv-on-ubuntu
How to Install OpenCV & Python 3 on Ubuntu using pip - DataFlair
January 9, 2020 - Type “import cv2” and hit enter. If you don’t get any error after completing these steps, then you have successfully installed Python and the OpenCV library.
🌐
Raspberry Pi Forums
forums.raspberrypi.com › board index › programming › python
Unable to import cv2 on OpenCV installation - Raspberry Pi Forums
] Installing collected packages: numpy, opencv-python Successfully installed numpy-2.2.2 opencv-python-4.11.0.86 (env) david@rp58book101064fnvme:~/Support/DevGuy $ python Python 3.11.2 (main, Sep 14 2024, 03:00:30) [GCC 12.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import cv2 >>> img = cv2.imread('Raspberry_Pi_OS.png') >>> print(img.size,img.shape) 4800 (40, 40, 3) >>> >>> (The stuff after import.cv2 is just to prove that the installed/imported module actually works.
🌐
Breakthrough
breakthrough.github.io › Installing-OpenCV
OpenCV 3.0 Python Guide
OpenCV can be downloaded from the official OpenCV website. Note that this guide is written based on OpenCV version 3.1.0. After installation, it is recommended that you can check the version of OpenCV that Python is using: import cv2 print cv2.__version__ # Should print 3.0.0-rc1 or newer.
🌐
Konfuzio
konfuzio.com › start › blog › python › opencv - cv2 guide for python developers
CV2: OpenCV Guide for Python Developers
December 17, 2025 - It takes the input image and a threshold as input and returns the thresholded image. Here is an example: import cv2 img = cv2.imread('image.jpg', 0) ret, thresh = cv2.threshold(img, 127, 255, cv2.THRESH_BINARY)
🌐
Saturn Cloud
saturncloud.io › blog › how-to-import-opencv-on-jupyter-notebook
How to Import OpenCV on Jupyter Notebook | Saturn Cloud Blog
November 15, 2023 - To do this, open a new Jupyter Notebook and create a new code cell. In the code cell, type the following code: import cv2 · This will import the OpenCV library into our Jupyter Notebook environment.
🌐
OpenCV
opencv.org › home › get started
Get Started - OpenCV
December 18, 2025 - Official OpenCV Certification 14 Modules Videos Quizzes 3Hrs Content Colab Notebooks What’s covered in this course? Getting Started With Images Basic Image Manipulation Image Annotation Image Enhancement Accessing the Camera Video Writing Image Filtering Image Features and Alignment Panorama HDR Object Tracking Face Detection TensorFlow Object Detection Pose Estimation using OpenPose Tool Kit Testimonials The […]
🌐
PyPI
pypi.org › project › cv2-tools
cv2-tools · PyPI
from cv2_tools.Managment import ManagerCV2 import cv2 # keystroke=27 is the button `esc` manager_cv2 = ManagerCV2(cv2.VideoCapture(0), is_stream=True, keystroke=27, wait_key=1, fps_limit=60) # This for will manage file descriptor for you for ...
      » pip install cv2-tools
    
Published   Jun 24, 2020
Version   2.4.0
🌐
Milddev
milddev.com › how-to-install-cv2-in-python
Install cv2 in Python - MildDev
August 2, 2025 - Learn multiple methods to install cv2 (OpenCV) in Python using pip, conda, or source builds, with virtual environment tips and troubleshooting.
🌐
Python.org
discuss.python.org › python help
Pip install works but I can't import "Fer and CV2" - Python Help - Discussions on Python.org
August 26, 2023 - Hello, I have PIP installed “fer” and “opencv-python” but I can’t import them. My commands to install are: pip install opencv-python pip install fer These worked. My python code is: import cv2 from fer import FE…
🌐
Javatpoint
javatpoint.com › how-to-install-opencv-in-python
How to install OpenCV in Python - Javatpoint
How to install OpenCV in Python with python, tutorial, tkinter, button, overview, entry, checkbutton, canvas, frame, environment set-up, first python program, basics, data types, operators, etc.