Search code examples
pythonlinuxopencvlinux-mint

ImportError: No module named opencv.cv


I installed opencv on Linux Mint using:

sudo apt-get install python-opencv

When I attempt to import the opencv module using:

from opencv.cv import *

I receive the error:

from opencv.cv import *
ImportError: No module named opencv.cv

Any idea why this error is occurring and how to resolve the problem?


Solution

  • Try doing

    import cv
    

    as in examples or

    from cv import *