import-error / E0401ΒΆ

Message emitted:

Unable to import %s


Used when pylint has been unable to import a module.

Problematic code:

from patlib import Path  # [import-error]

Correct code:

from pathlib import Path

Additional details:

This can happen if you're importing a package that is not installed in your environment, or if you made a typo.

The solution is to install the package via pip/ or fix the typo.

Created by the imports checker.