Command line installationΒΆ
Pylint is installable using a package manager. Your package manager will find a version that
works with your interpreter. We recommend pip:
pip install pylint
Or if you want to also check spelling with enchant (you might need to
install the enchant C library):
pip install pylint[spelling]
The newest pylint supports all Python interpreters that are not past end of life.
Pylint relies on the ast module provided by the Python interpreter that runs
it, so that interpreter must be able to parse the syntax used by the code. Newer
interpreters generally provide a more capable parser. However, for projects that
support multiple Python versions, running Pylint on the oldest supported interpreter
is usually the most reliable way to match the compatibility floor. If the lint
environment uses a newer interpreter, set py-version to the oldest supported
version for version-aware checks; it does not emulate the older interpreter. See
using pylint with multiple interpreters for more details.
Note
You can also use conda or your system package manager on debian based OS.
These package managers lag a little behind as they are maintained by a separate
entity on a slower release cycle.
conda install pylint
sudo apt-get install pylint