I have run the command
pip3 list
It shows that I have already installed these versions of OpenCV
opencv-contrib-python 4.1.2.30
opencv-python 4.2.0.32
But whenever I import cv2 it shows the error
ModuleNotFoundError: No module named 'cv2'
I have run the command
pip3 list
It shows that I have already installed these versions of OpenCV
opencv-contrib-python 4.1.2.30
opencv-python 4.2.0.32
But whenever I import cv2 it shows the error
ModuleNotFoundError: No module named 'cv2'
If you had a previous version installed. Uninstall it first and try installing it. See the instructions here: https://pypi.org/project/opencv-python/