Linter pylint is not installed

Naveed Aheer picture Naveed Aheer · Apr 7, 2017 · Viewed 159.8k times · Source

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

"Linter pylint is not installed"

I installed:

  • The VS Code Python extension
  • Python3
  • Anaconda

How can I install pylint?

Answer

Kaka Ruto picture Kaka Ruto · Aug 31, 2017

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.