I had a pyhton program using opencv that I wanted to run a little, so It was executed as follows.
python3 "The program you want to run.py"
Then I got the following error
Traceback (most recent call last):
File "The program you want to run.py", line 21, in <module>
import cv2
ModuleNotFoundError: No module named 'cv2'
Solution
I executed the following command referring to This page of Qiita.
pip install opencv-python
Then check if it can be imported again
>>> import cv2
>>> print( cv2.__version__ )
4.4.0
>>>
did it.
It was cold yesterday November 7, 2020
Recommended Posts