File "C:\Users\Admin\PycharmProjects\bot\thebot.py", line 1, in <module> import cv2 ModuleNotFoundError: No module named 'cv2' code example
Example: ModuleNotFoundError: No module named 'cv2'
To solve this run the following
# main opencv
pip install opencv-python
# contrib package for the extra features
pip install opencv-contrib-python
The official installation instructions are on the opencv website.
More info can be found here:
https://www.pyimagesearch.com/opencv-tutorials-resources-guides/