(Python 3.9) Import cv2ModuleNotFoundError: No module named 'cv2'[Solved] Visual Studio
- Brian Clark

- Feb 11, 2022
- 1 min read
When attempting to import cv2; you might see the following error:
line 1, in <module>
import cv2
ModuleNotFoundError: No module named 'cv2'To solve this error in Visual Studio(VS) on windows, click on the Terminal tab:

Type in the following command:
pip install opencv-python Press Enter
Here is a solution that worked for me; I hope it works for you all struggling with this error.



Comments