I tried installing OpenCV on Windows 10 using pip. I used this command- pip install opencv-contrib-python
After that when I tried importing cv2 on command prompt, it
Try this in anaconda prompt:
First create a new enviorment :
conda create -n opencv
then :
conda activate opencv
then:
conda install -c anaconda opencv
source:youtube