Back to Python Errors
Python Exception

ImportError

Cannot import module

What does this error mean?

Occurs when trying to import a module that cannot be found or loaded.

How to fix ImportError?

Install missing packages (pip install). Check module name and Python path.

Example
import non_existent # ImportError: No module named 'non_existent'