Modulenotfounderror No Module Named 'cv2' Spyder 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: ModuleNotFoundError: No module named 'cv2'

sudo apt-get install python-opencv libopencv-dev python-numpy python-dev

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable