Python: How to pip install opencv2 with specific version 2.4.9?

778    Asked by DylanForsyth in Python , Asked on Apr 13, 2021

I know that I could pip install opencv-python which installs opencv3, but is there a separate command or name for OpenCV specific version such as 2.4.9?

If not, how can I specify which version to install?

Answered by Dylan Forsyth

To install pip openCV2 using the following code:

  pip install opencv-python==2.4.9

However, that package does not seem to be available on PyPI.

A little trick for checking available versions:

  pip install opencv-python==

Which returns:

Could not find a version that satisfies the requirement opencv-python==

(from versions: 3.1.0.0, 3.1.0.1, 3.1.0.2, 3.1 .0.3, 3.1.0.5, 3.2.0.6, 3.2.0.7) No matching distribution found for opencv-python==

Your Answer

Interviews

Parent Categories