'ERROR: Could not find a version that satisfies the requirement python-opencv

I am trying to install the opencv python library. This is the command I ran:

pip install python-opencv

I got this error:

ERROR: Could not find a version that satisfies the requirement python-opencv
ERROR: No matching distribution found for python-opencv

I got a suggestion from a video to use this:

pip install python-opencv-headless

But still i was getting the same error. I am using python 3.7.9. How can i fix this error



Solution 1:[1]

you can use this:-

pip install opencv-python

Solution 2:[2]

however,usefuless :) I also got the error

ERROR: Could not find a version that satisfies the requirement python-opencv ERROR: No matching distribution found for python-opencv

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 jonrsharpe
Solution 2 ZhengQinYuan