ModuleNotFoundError

The exception raised when import cannot find a module with the given name.

In more detail

It usually means the package is not installed in the Python that is running, often because a different interpreter or an inactive virtual environment is in use. Check sys.executable and install with python -m pip. It is a subclass of ImportError.

Related terms

Taught in

References

Certification courses