+1 vote
in Python by (150 points)
edited by

I am using Microsoft Visual Studio Code to run my python code but it shows the error that 

Linter pylint is not installed

These three I have already installed in my system

  • The VS Code Python extension
  • Python3
  • Anaconda

Tell me how to install pylint?

3 Answers

+5 votes
by (10.9k points)
edited by

Steps to install pylint-

1. Open a command prompt or terminal(For windows,navigate to install location).

2. Run: python-m pip install pylint

If the above process doesn’t work, then there may be a slight chance that you have configured a non-default python path for your editor and if that happens, you will have to match that python’s install location with that of the pip executable that you are calling from the terminal.

Location of Pylint executable-

Windows-pylint.exe should be in python root directory

macOS- Run the command: which pylint

+1 vote
by (1k points)
edited by

The following command  may help-

python -m pip install pylint
0 votes
by (32.5k points)
edited by

Go to the path pylint has been installed to, by typing which pylint.

You will get something like:


Copy it.

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

"python.linting.pylintPath": "pylint"

Edit the line as:

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

Before saving your changes make sure you have replaced "pylint" with the path you got from typing which pylint

Then save your changes and reload vs code.

You can use the following video tutorials to clear all your doubts:-

Learn in detail about Python by enrolling in Intellipaat Python Course online and upskill.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !