A similar issue happened to me after I a completely reinstalled Python. Opening the settings.json
by Ctrl+ ? Shift+P:
and I saw that I had set the default linter to
"python.linting.pylintPath": "pylint_django"
so opening a terminal (e.g., Ctrl + ?Shift + ~) and the installing
pip install pylint_django
solved the problem.