I want to run Python code in Microsoft Visual Studio Code but it gives an error:
Linter pylint is not installed
How can I install Pylint?
This question is tagged with
~ Asked on 2017-04-07 07:53:15
pip install pylint
If that doesn't work: On the off chance you've configured a non-default Python path for your editor, you'll need to match that Python's install location with the pip executable you're calling from the terminal.
This is an issue because the Python extension's settings enable Pylint by default. If you'd rather turn off linting, you can instead change this setting from
false in your user or workspace settings:
~ Answered on 2017-04-07 08:00:07
Check the path Pylint has been installed to, by typing
which pylint on your terminal.
You will get something like:
Go to your Visual Studio Code settings in the
preferences tab and find the line that goes
Edit the line to be
replacing the value
"pylint" with the path you got from typing
Save your changes and reload Visual Studio Code.
~ Answered on 2017-08-31 20:42:05