Python 3.7.4 July 8, 2019 Download Release Notes; Python 3.6.9 July 2, 2019 Download Release Notes; Python 3.7.3 March 25, 2019 Download Release Notes; Python 3.4.10 March 18, 2019 Download Release Notes; Python 3.5.7 March 18, 2019 Download Release Notes; Python 2.7.16 March 4, 2019 Download Release Notes; Python 3.7.2 Dec. 24, 2018 Download. The best way to do so is probable the standard library package ensurepip. It's very simple, at your favorite shell: codepython3.7 -m ensurepip /codeThis will install pip if it doesn't exist.
OpenCV 4.2 works with Python 2.7, 3.5, 3.6, 3.7, 3.8.The unofficial OpenCV PyPiwheelswork for Linux, Mac and Windows.
pip install
OpenCV for Python
Importantly, the pip install
methods below also work for the OpenCV GUI such as imshow etc.
ARM / Raspberry Pi
also works for certain ARM platforms like the Raspberry Pi.Note: If you install on an ARMv7 Raspberry Pi (or ARMv8 running in ARMv7 e.g. with Raspbian), you will need to pip uninstall
and pip install
upon inserting the SD card into an ARMv6 system, or
SIGILL Illegal Instruction
Python 3.7.4 Shell Download
error will result.
For example, setting up a Python OpenCV algorithm on a Raspberry Pi 4 then inserting the same SD card into a Raspberry Pi Zero / Zero W will require reinstalling OpenCV.OpenCV is trivial and fast to install on a Raspberry Pi via pip
as described above.
OpenCV with extra contribs
For those desired the latest extended functionality that hasn't yet been incorporated into the core package, OpenCV including theExtra contributed modulesmay be obtained by:
Notes
- (reference) Windows-only OpenCV wheels.(cpMN where you have Python M.N).
contrib
includes OpenCV-extra packages.
Python executable selection
If you get the .. is not supported on this platform
error be sure you're not accidentally using Python 2.7 instead of Python 3, you may have to manually specify the path for the pip
command e.g.
Test Python OpenCV install
Python 3.7.4 Online
We made several testscriptsto try out the OpenCV install.
compile source
Antares auto tune demo. Facebook com messenger. You cancompile and installOpenCV for Python.Or compile OpenCV withextra contributed packages.Compiling yourself allows customizing and optimizing OpenCV for your computer (e.g. using GPU, TBB, OpenCL, etc.).
conda
The conda install opencv
and conda install -c conda-forge opencv
methods for OpenCV continue to be BROKEN for video/image reading and display.Use pip install
above instead.