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
Option 1 - Main modules package: pip install opencv-python
      » pip install opencv-python
    
Published   Feb 05, 2026
Version   4.13.0.92
Discussions

How to pip install opencv-python
Hi there! Welcome to r/termux , the official Termux support community on Reddit. Termux is a terminal emulator application for Android OS with its own Linux user land. Here we talk about its usage, share our experience and configurations. Users with flair Termux Core Team are Termux developers and moderators of this subreddit. If you are new, please check our Introduction for Beginners post to get an idea how to start. The latest version of Termux can be installed from https://f-droid.org/packages/com.termux/ . If you still have Termux installed from Google Play, please switch to F-Droid build. HACKING, PHISHING, FRAUD, SPAM, KALI LINUX AND OTHER STUFF LIKE THIS ARE NOT PERMITTED - YOU WILL GET BANNED PERMANENTLY FOR SUCH POSTS! Do not use r/termux for reporting bugs. Package-related issues should be submitted to https://github.com/termux/termux-packages/issues . Application issues should be submitted to https://github.com/termux/termux-app/issues . I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns. More on reddit.com
🌐 r/termux
13
1
January 19, 2025
How can I install OpenCV for Python?
Hei you have to open your promt and run ''pip install opencv-python' to install the module. Depending on your program you may have to activate it. More on reddit.com
🌐 r/learnpython
5
1
April 25, 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
In my command prompt I used `pip install opencv-python`, `pip install opencv-contrib-python` and `pip install opencv-python-headles`. Still I am not getting all the functions. I also reinstalled my python interpreter and the packages but still it is not working.
Is the problem that code using cv2 won't run, or just that autocomplete isn't working? If it's the latter: https://stackoverflow.com/questions/73174194/opencv-autocomplete-not-working-on-pycharm More on reddit.com
🌐 r/learnpython
12
0
April 15, 2023
🌐
OpenCV
docs.opencv.org › 4.x › d5 › de5 › tutorial_py_setup_in_windows.html
OpenCV: Install OpenCV-Python in Windows
: Please prefer binaries distributed with PyPI, if possible. See Install OpenCV for Python with pip for details.
🌐
GeeksforGeeks
geeksforgeeks.org › python › how-to-install-opencv-for-python-in-windows
How to Install OpenCV for Python on Windows - GeeksforGeeks
February 7, 2026 - In this article, we will learn how to install OpenCV for Python on Windows and verify that it works correctly. The installation process includes checking prerequisites, installing OpenCV, and running a quick version check. Python must be installed. pip (Python package manager) must be available (usually installed with Python).
🌐
OpenCV
docs.opencv.org › 4.x › db › dd1 › tutorial_py_pip_install.html
OpenCV: Install OpenCV for Python with pip
This quick-start shows the recommended way for most users to get OpenCV in Python: install from PyPI with pip. It also explains virtual environments, platform notes, and common troubleshooting.
🌐
Chrisstrelioff
chrisstrelioff.ws › sandbox › 2024 › 04 › 19 › install_opencv_python_using_pip
Install OpenCV-python using pip @ chrisstrelioff.ws
(opencv) $ pip --version pip 24.0 from /home/cstrelioff/virtenvs/opencv/lib/python3.10/site-packages/pip (python 3.10) (opencv) $ python --version Python 3.10.12 (opencv) $
🌐
DataFlair
data-flair.training › blogs › install-opencv-on-ubuntu
How to Install OpenCV & Python 3 on Ubuntu using pip - DataFlair
January 9, 2020 - Today, we’ll be using a tool called pip, which is like an app store for Python, to download and install OpenCV automatically.
Find elsewhere
🌐
Reddit
reddit.com › r/termux › how to pip install opencv-python
r/termux on Reddit: How to pip install opencv-python
January 19, 2025 -

I need to install opencv-python as a dependency for other python library. When I try to : pip install opencv-python

It gives me an error: ` CMake Error at cmake/android/OpenCVDetectAndroidSDK.cmake:49 (message): Android SDK: specify path to Android SDK via ANDROID_SDK_ROOT / ANDROID_HOME / ANDROID_SDK variables Call Stack (most recent call first): cmake/android/OpenCVDetectAndroidSDK.cmake:172 (ocv_detect_android_sdk) CMakeLists.txt:818 (include)

  Configuring incomplete, errors occurred!

`

Also I tried to install this package: pkg install opencv Package installs but it does nothing, so when i try to pip install original library that I wanted, it still trying to build wheels for opencv

Also I have it's pointless repo installed

🌐
OpenCV
docs.opencv.org › 4.x › d2 › de6 › tutorial_py_setup_in_ubuntu.html
OpenCV: Install OpenCV-Python in Ubuntu
: Please prefer binaries distributed with PyPI, if possible. See Install OpenCV for Python with pip for details.
🌐
Reddit
reddit.com › r/learnpython › how can i install opencv for python?
r/learnpython on Reddit: How can I install OpenCV for Python?
April 25, 2024 -

So, I followed 2-3 videos on YouTube that are on the topic of OpenCV for Python but it is not working. If someone here can guide me on this topic, it will greatly help. Like how did you install it on your laptop?

🌐
Breakthrough
breakthrough.github.io › Installing-OpenCV
OpenCV 3.0 Python Guide
pip install numpy-1.9.2+mkl-cp27-none-win_amd64.whl pip install scipy-0.15.1-cp27-none-win_amd64.whl · After installing, you should be able to run import numpy and import scipy from a Python interpreter to verify that the modules were installed correctly. You can check what versions of NumPy and SciPy are installed from numpy.__version__ and scipy.__version__, respectively. Lastly, we need to copy the OpenCV module into the local Python packages.
🌐
PyImageSearch
pyimagesearch.com › home › blog › pip install opencv
pip install OpenCV - PyImageSearch
June 9, 2023 - All that said — there are four OpenCV packages that are pip-installable on the PyPI repository: opencv-python: This repository contains just the main modules of the OpenCV library.
🌐
Raspberry Pi Forums
forums.raspberrypi.com › board index › programming › python
How to install Python OpenCV? - Raspberry Pi Forums
Hi this is Gulshan Negi Well, to install OpenCV for Python, you can use pip, which is the package installer for Python. Open a command prompt or terminal, and run the below command: pip install opencv-python This command will install the latest version of OpenCV for Python on your system.
🌐
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…
🌐
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)"
🌐
OpenCV
opencv.org › home › get started
Get Started - OpenCV
December 18, 2025 - Python · C++ Java · Android · iOS · JavaScript · Run this Command: Default Result: pip3 install opencv-python · To ensure that OpenCV is installed correctly, we can run the following example to show how to read and display image · Change ...
🌐
TecAdmin
tecadmin.net › how-to-install-opencv-in-python
How to Install OpenCV in Python – TecAdmin
April 26, 2025 - In this article, we will cover two different methods for installing OpenCV in Python: using “PIP” (the Python Package Manager) and using “Anaconda” (a free and open-source distribution of Python and R for data science and machine learning).
🌐
Portland State University
web.cecs.pdx.edu › ~fliu › courses › cs410 › python-opencv.html
How to Install OpenCV-Python
Linux: 1. Install anaconda: wget https://repo.continuum.io/archive/Anaconda3-2018.12-Linux-x86_64.sh bash Anaconda3-2018.12-Linux-x86_64.sh -b -p $HOME/anaconda export PATH="$HOME/anaconda/bin:$PATH" conda update --all 2. Install necessary libraries: pip install opencv-python==3.4.2.17 pip install opencv-contrib-python==3.4.2.17 Windows: 1.