Import Cv2 ImportError: No Module Named Cv2 Code Example


Example 1: 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/

Example 2: cv2 not found

python -m pip install opencv-python

Comments

Popular posts from this blog

Chemistry - Bond Angles In NH3 And NCl3

Are Regular VACUUM ANALYZE Still Recommended Under 9.1?

Change The Font Size Of Visual Studio Solution Explorer