ModuleNotFoundError: No module named 'cv2'

in Python
Python Tutorials
1 Answers to this question

This error comes up when you have not installed the opencv module in the system. Hence, you will need to check if this module is available or not. Use the below command to check the same.


$ pip list or conda list


If the module is not available, then install the same using the below command.

$ pip install opencv-python or conda install opencv-python

Also you need to check if the numpy module is available or not. You need to install numpy if it is not available.

 

$ pip install numpy

If you want to unleash your potential in this competitive field, please visit the Python Training Certification page for more information, where you can find the       and    Python Interview Questions FAQ's and answers    as well.

For more updates on the latest courses stay tuned to HKR Trainings.

To Top