Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

ImportError is a built-in exception for Python, which is raised when an import statement fails to find the module definition or when a from ... import fails to find a name that is to be imported.

For more information on Pythons built-in exceptions see Python Standard Library/Built-in Exceptions

For an article about some of the issues that might cause an ImportError see Traps for the Unwary in Python’s Import System

history | excerpt history