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
In the Anaconda Navigator. Launch conda console as below.
In the console: run conda install opencv
conda install opencv