ModuleNotFoundError: No module named 'cv2'

ModuleNotFoundError: No module named 'cv2'

HI,

I am trying to import cv2 in Python program and it throws following error:

import cv2
ModuleNotFoundError: No module named 'cv2'

My system is Ubuntu 18.04

How to resolve this?

Thanks

View Answers

November 6, 2019 at 3:16 AM

Hi,

You can run following pip command:

pip install opencv-python

This will install opencv for your python environment.

Thanks


November 6, 2019 at 3:29 AM

Hi,

Check more tutorials at: Python Tutorials section.

Thanks









Related Tutorials/Questions & Answers:
ModuleNotFoundError: No module named 'cv2'
ModuleNotFoundError: No module named 'cv2'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'cv2' How to remove the ModuleNotFoundError: No module named 'cv2' error
ModuleNotFoundError: No module named 'cv2'
ModuleNotFoundError: No module named 'cv2'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'cv2' How to remove the ModuleNotFoundError: No module named 'cv2' error
Advertisements
ModuleNotFoundError: No module named 'cv2'
ModuleNotFoundError: No module named 'cv2'  HI, I am trying to import cv2 in Python program and it throws following error: import cv2 ModuleNotFoundError: No module named 'cv2' My system is Ubuntu 18.04 How to resolve
ModuleNotFoundError: No module named 'module'
ModuleNotFoundError: No module named 'module'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'module' How to remove the ModuleNotFoundError: No module named 'module'
ModuleNotFoundError: No module named 'named-bitfield'
ModuleNotFoundError: No module named 'named-bitfield'  Hi, My... named 'named-bitfield' How to remove the ModuleNotFoundError: No module named... the installation of named-bitfield python library, ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'named_constants'
ModuleNotFoundError: No module named 'named_constants'  Hi, My... named 'named_constants' How to remove the ModuleNotFoundError: No module named... the installation of named_constants python library, ModuleNotFoundError: No module
ModuleNotFoundError: No module named 'named_dataframes'
ModuleNotFoundError: No module named 'named_dataframes'  Hi, My... named 'named_dataframes' How to remove the ModuleNotFoundError: No module...: No module named 'named_dataframes' error will be solved. Thanks
ModuleNotFoundError: No module named 'named_constants'
ModuleNotFoundError: No module named 'named_constants'  Hi, My... named 'named_constants' How to remove the ModuleNotFoundError: No module named... the installation of named_constants python library, ModuleNotFoundError: No module
ModuleNotFoundError: No module named 'named_decorator'
ModuleNotFoundError: No module named 'named_decorator'  Hi, My... named 'named_decorator' How to remove the ModuleNotFoundError: No module named... the installation of named_decorator python library, ModuleNotFoundError: No module
ModuleNotFoundError: No module named 'named-bitfield'
ModuleNotFoundError: No module named 'named-bitfield'  Hi, My... named 'named-bitfield' How to remove the ModuleNotFoundError: No module named... the installation of named-bitfield python library, ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'named_constants'
ModuleNotFoundError: No module named 'named_constants'  Hi, My... named 'named_constants' How to remove the ModuleNotFoundError: No module named... the installation of named_constants python library, ModuleNotFoundError: No module
ModuleNotFoundError: No module named 'named_dataframes'
ModuleNotFoundError: No module named 'named_dataframes'  Hi, My... named 'named_dataframes' How to remove the ModuleNotFoundError: No module...: No module named 'named_dataframes' error will be solved. Thanks
ModuleNotFoundError: No module named 'named-dates'
ModuleNotFoundError: No module named 'named-dates'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'named-dates' How to remove the ModuleNotFoundError: No module named '
ModuleNotFoundError: No module named 'named_decorator'
ModuleNotFoundError: No module named 'named_decorator'  Hi, My... named 'named_decorator' How to remove the ModuleNotFoundError: No module named... the installation of named_decorator python library, ModuleNotFoundError: No module
ModuleNotFoundError: No module named 'named-enum'
ModuleNotFoundError: No module named 'named-enum'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'named-enum' How to remove the ModuleNotFoundError: No module named '
ModuleNotFoundError: No module named 'named-bitfield'
ModuleNotFoundError: No module named 'named-bitfield'  Hi, My... named 'named-bitfield' How to remove the ModuleNotFoundError: No module named... the installation of named-bitfield python library, ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'named_dataframes'
ModuleNotFoundError: No module named 'named_dataframes'  Hi, My... named 'named_dataframes' How to remove the ModuleNotFoundError: No module...: No module named 'named_dataframes' error will be solved. Thanks
ModuleNotFoundError: No module named 'named-dates'
ModuleNotFoundError: No module named 'named-dates'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'named-dates' How to remove the ModuleNotFoundError: No module named '
ModuleNotFoundError: No module named 'named-enum'
ModuleNotFoundError: No module named 'named-enum'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'named-enum' How to remove the ModuleNotFoundError: No module named '
ModuleNotFoundError: No module named 'named_redirect'
ModuleNotFoundError: No module named 'named_redirect'  Hi, My... named 'named_redirect' How to remove the ModuleNotFoundError: No module named... the installation of named_redirect python library, ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'Burki_Module'
ModuleNotFoundError: No module named 'Burki_Module'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'Burki_Module' How to remove the ModuleNotFoundError: No module named '
ModuleNotFoundError: No module named 'c-module'
ModuleNotFoundError: No module named 'c-module'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'c-module' How to remove the ModuleNotFoundError: No module named 'c-module
ModuleNotFoundError: No module named 'Dragon_Module'
ModuleNotFoundError: No module named 'Dragon_Module'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'Dragon_Module' How to remove the ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'Dragon_Module'
ModuleNotFoundError: No module named 'Dragon_Module'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'Dragon_Module' How to remove the ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'huik-module'
ModuleNotFoundError: No module named 'huik-module'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'huik-module' How to remove the ModuleNotFoundError: No module named '
ModuleNotFoundError: No module named 'Mathematics-Module'
ModuleNotFoundError: No module named 'Mathematics-Module'  Hi, My... named 'Mathematics-Module' How to remove the ModuleNotFoundError: No module named 'Mathematics-Module' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'Mathematics-Module'
ModuleNotFoundError: No module named 'Mathematics-Module'  Hi, My... named 'Mathematics-Module' How to remove the ModuleNotFoundError: No module named 'Mathematics-Module' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'mkflask_module'
ModuleNotFoundError: No module named 'mkflask_module'  Hi, My... named 'mkflask_module' How to remove the ModuleNotFoundError: No module named... the installation of mkflask_module python library, ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'module-package'
ModuleNotFoundError: No module named 'module-package'  Hi, My... named 'module-package' How to remove the ModuleNotFoundError: No module named... the installation of module-package python library, ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'module-reloadable'
ModuleNotFoundError: No module named 'module-reloadable'  Hi, My... named 'module-reloadable' How to remove the ModuleNotFoundError: No module named 'module-reloadable' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'module-resources'
ModuleNotFoundError: No module named 'module-resources'  Hi, My... named 'module-resources' How to remove the ModuleNotFoundError: No module named 'module-resources' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'module_salad'
ModuleNotFoundError: No module named 'module_salad'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'module_salad' How to remove the ModuleNotFoundError: No module named '
ModuleNotFoundError: No module named 'module-starter.leon'
ModuleNotFoundError: No module named 'module-starter.leon'  Hi, My... named 'module-starter.leon' How to remove the ModuleNotFoundError: No module named 'module-starter.leon' error? Thanks   Hi
ModuleNotFoundError: No module named 'module_template'
ModuleNotFoundError: No module named 'module_template'  Hi, My... named 'module_template' How to remove the ModuleNotFoundError: No module named... named 'module_template' error will be solved. Thanks
ModuleNotFoundError: No module named 'module-tracker'
ModuleNotFoundError: No module named 'module-tracker'  Hi, My... named 'module-tracker' How to remove the ModuleNotFoundError: No module named... the installation of module-tracker python library, ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'module-graph'
ModuleNotFoundError: No module named 'module-graph'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'module-graph' How to remove the ModuleNotFoundError: No module named '
ModuleNotFoundError: No module named 'module-launcher'
ModuleNotFoundError: No module named 'module-launcher'  Hi, My... named 'module-launcher' How to remove the ModuleNotFoundError: No module named... named 'module-launcher' error will be solved. Thanks
ModuleNotFoundError: No module named 'module-loader'
ModuleNotFoundError: No module named 'module-loader'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'module-loader' How to remove the ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'module-log'
ModuleNotFoundError: No module named 'module-log'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'module-log' How to remove the ModuleNotFoundError: No module named '
ModuleNotFoundError: No module named 'module_name'
ModuleNotFoundError: No module named 'module_name'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'module_name' How to remove the ModuleNotFoundError: No module named '
ModuleNotFoundError: No module named 'module-package'
ModuleNotFoundError: No module named 'module-package'  Hi, My... named 'module-package' How to remove the ModuleNotFoundError: No module named... the installation of module-package python library, ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'module-reloadable'
ModuleNotFoundError: No module named 'module-reloadable'  Hi, My... named 'module-reloadable' How to remove the ModuleNotFoundError: No module named 'module-reloadable' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'module-resources'
ModuleNotFoundError: No module named 'module-resources'  Hi, My... named 'module-resources' How to remove the ModuleNotFoundError: No module named 'module-resources' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'module_salad'
ModuleNotFoundError: No module named 'module_salad'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'module_salad' How to remove the ModuleNotFoundError: No module named '
ModuleNotFoundError: No module named 'module-starter.leon'
ModuleNotFoundError: No module named 'module-starter.leon'  Hi, My... named 'module-starter.leon' How to remove the ModuleNotFoundError: No module named 'module-starter.leon' error? Thanks   Hi
ModuleNotFoundError: No module named 'module_template'
ModuleNotFoundError: No module named 'module_template'  Hi, My... named 'module_template' How to remove the ModuleNotFoundError: No module named... named 'module_template' error will be solved. Thanks
ModuleNotFoundError: No module named 'module-tracker'
ModuleNotFoundError: No module named 'module-tracker'  Hi, My... named 'module-tracker' How to remove the ModuleNotFoundError: No module named... the installation of module-tracker python library, ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'module-wrapper'
ModuleNotFoundError: No module named 'module-wrapper'  Hi, My... named 'module-wrapper' How to remove the ModuleNotFoundError: No module named... the installation of module-wrapper python library, ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'Module_xichengxml'
ModuleNotFoundError: No module named 'Module_xichengxml'  Hi, My... named 'Module_xichengxml' How to remove the ModuleNotFoundError: No module named 'Module_xichengxml' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'MSOffice2PS-Python-Module'
ModuleNotFoundError: No module named 'MSOffice2PS-Python-Module'  Hi...: No module named 'MSOffice2PS-Python-Module' How to remove the ModuleNotFoundError: No module named 'MSOffice2PS-Python-Module' error? Thanks  

Ads