Linter pylint is not installed

前端 未结 15 1775
遥遥无期
遥遥无期 2020-12-12 12:56

I want to run python code in Microsoft Visual Studio Code but it gives an error:

\"Linter pylint is not installed\"

I installed:

15条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-12 13:18

    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.

提交回复
热议问题