Linter pylint is not installed

前端 未结 15 1823
遥遥无期
遥遥无期 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:11

    Check the path pylint has been installed to, by typing which pylint on your terminal.

    You will get something like: /usr/local/bin/pylint

    Copy it.

    Go to your vscode settings on the preferences tab and find the line that goes

    "python.linting.pylintPath": "pylint"

    Edit the line to be

    "python.linting.pylintPath": "/usr/local/bin/pylint",

    replacing the value "pylint" with the path you got from typing which pylint

    Save your changes and reload vscode.

提交回复
热议问题