Install opencv-python (which is the official pre-built OpenCV package for Python) by issuing the following command:

pip install opencv-python
Answer from Eiconic on Stack Overflow
๐ŸŒ
PyPI
pypi.org โ€บ project โ€บ opencv-python
opencv-python ยท PyPI
Pre-built CPU-only OpenCV packages for Python. Check the manual build section if you wish to compile the bindings from source to enable additional modules such as CUDA. If you have previous/other manually installed (= not installed via pip) version of OpenCV installed (e.g. cv2 module in the ...
      ยป pip install opencv-python
    
Published ย  Feb 05, 2026
Version ย  4.13.0.92
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ opencv-python-tutorial
OpenCV Tutorial in Python - GeeksforGeeks
OpenCV (Open Source Computer Vision Library) is an open-source computer vision and machine learning library. It allows us to process images and videos, detect objects, faces and even handwriting.
Published ย  July 12, 2025
๐ŸŒ
GitHub
github.com โ€บ opencv โ€บ opencv
GitHub - opencv/opencv: Open Source Computer Vision Library ยท GitHub
Open Source Computer Vision Library. Contribute to opencv/opencv development by creating an account on GitHub.
Starred by 87.3K users
Forked by 56.5K users
Languages ย  C++ 87.4% | C 3.1% | Python 3.0% | CMake 2.0% | Java 1.5% | Objective-C++ 0.8%
๐ŸŒ
Raspberry Pi Forums
forums.raspberrypi.com โ€บ board index โ€บ programming โ€บ python
How to install Python OpenCV? - Raspberry Pi Forums
sudo pip3 install opencv-python Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting opencv-python Downloading opencv_python-4.7.0.68-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (40.4 MB) |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 40.4 MB 44 kB/s Requirement already satisfied: numpy>=1.17.3 in /usr/lib/python3/dist-packages (from opencv-python) (1.19.5) Installing collected packages: opencv-python Successfully installed opencv-python-4.7.0.68 or use sudo apt install python3-opencv -y
Find elsewhere
๐ŸŒ
OpenCV
opencv.org โ€บ home
OpenCV - Open Computer Vision Library
February 9, 2021 - C++, Python and Java interfaces support Linux, MacOS, Windows, iOS, and Android.
๐ŸŒ
Konfuzio
konfuzio.com โ€บ start โ€บ blog โ€บ python โ€บ opencv - cv2 guide for python developers
CV2: OpenCV Guide for Python Developers
December 17, 2025 - CV2 is a powerful library for working with images in Python. In this article, we have covered some of the most commonly used functions and methods, including loading and displaying images, image manipulation and filtering images.
๐ŸŒ
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 [โ€ฆ]
๐ŸŒ
SourceForge
sourceforge.net โ€บ projects โ€บ opencvlibrary
OpenCV download | SourceForge.net
It works on Windows, Linux, Mac OS X, Android, iOS in your browser through JavaScript. Languages: C++, Python, Julia, Javascript Homepage: https://opencv.org Q&A forum: https://forum.opencv.org/ Documentation: https://docs.opencv.org Source code: https://github.com/opencv Please pay special attention to our tutorials!
Rating: 4.7 โ€‹ - โ€‹ 123 votes
๐ŸŒ
Wikipedia
en.wikipedia.org โ€บ wiki โ€บ OpenCV
OpenCV - Wikipedia
January 29, 2026 - OpenCV is written in the programming language C++, as is its primary interface. There are language bindings in Python, Java, and MATLAB/Octave. The application programming interface (API) for these interfaces can be found in the online documentation. Wrapper libraries in several languages have been developed to encourage adoption by a wider audience.
๐ŸŒ
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 โ€ฆ
๐ŸŒ
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โ€ฆ
๐ŸŒ
Raspberry Pi Forums
forums.raspberrypi.com โ€บ board index โ€บ programming โ€บ python
Unable to import cv2 on OpenCV installation - Raspberry Pi Forums
January 29, 2025 - ] 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.
๐ŸŒ
Google Groups
groups.google.com โ€บ g โ€บ comp.lang.python โ€บ c โ€บ yt5XALnWO20
OpenCV with Python (cv or cv2)
> >I installed version 2.4.9 >(http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.9/opencv-2.4.9.zip/) >in debian Squeeze running Python 2.6.6. Using the tutorial: >http://indranilsinharoy.com/2012/11/01/installing-opencv-on-linux/ > >(I tried to install versions 2.4.11 and 2.4.10 (in Squeeze with python >2.2.6) but I couldn't.) You mean python 2.6.6, right? and this package: https://packages.debian.org/source/squeeze/opencv which is 2.1.0-3 is too old for you? What do you mean that you tried to install versions 2.4.11 and 2.4.10 but couldn't? What error messages did you get? >I lost some time trying to load the module cv2: > >> >> Import cv2.cv the cv s/the/as/ ?
๐ŸŒ
GitHub
github.com โ€บ opencv โ€บ opencv-python โ€บ releases
Releases ยท opencv/opencv-python
Python: - #24023, #24022, #23910 Added type stub generation for missed types and manually wrapped types. - #24026 Added read-only flag handling for Numpy arrays. - #24028 Fixed exception handling and bindings for in module. - #23958 Improved error messages in Numpy array type handling.
Author ย  opencv
๐ŸŒ
Anaconda.org
anaconda.org โ€บ conda-forge โ€บ opencv
opencv - conda-forge | Anaconda.org
Install opencv with Anaconda.org. Computer vision and machine learning software library.