How to Install pylint in Python

v4.0.5 Testing & QA Python >=3.10.0

python code static checker

Install pip install pylint

What is pylint?

python code static checker

Pylint is a for Python 2 or 3. The latest version supports Python 3.10.0 and above.

Pylint analyses your code without actually running it. It checks for errors, enforces a coding standard, looks for , and can make suggestions about how the code could be refactored.

For command line use, pylint is installed with::

Quick Start

Minimal example to get started with pylint:

import pylint

print(pylint.__version__)

Installation

pip (standard)

pip install pylint

Virtual environment (recommended)

python -m venv venv
source venv/bin/activate   # Windows: venv\Scripts\activate
pip install pylint

pip3

pip3 install pylint

conda

conda install -c conda-forge pylint

Poetry

poetry add pylint

Dependencies

Installing pylint will also install these packages:

Verify the Installation

After installing, confirm the package is available:

python -c "import pylint; print(pylint.__version__)"

If this prints a version number, installation succeeded. If you see a ModuleNotFoundError, see the errors section below.

Installation Errors

Common errors when installing pylint with pip.

ModuleNotFoundError: No module named 'pylint'

Cause: The package is not installed in the current Python environment.

Fix: Run pip install pylint. If using a virtual environment, ensure it is activated first.

ModuleNotFoundError: No module named 'pylint' (installed but still failing)

Cause: pip installed the package into a different Python than the one running your script.

Fix: Use python -m pip install pylint to install into the interpreter you are running.

ImportError: cannot import name 'X' from 'pylint'

Cause: The function or class does not exist in the installed version.

Fix: Check the version with pip show pylint and upgrade with pip install --upgrade pylint.

pip: command not found

Cause: pip is not in PATH or Python was not added to PATH during installation.

Fix: Try python -m pip install pylint. On macOS/Linux try pip3.

PermissionError: [Errno 13] Permission denied

Cause: No write access to the system Python package directory.

Fix: Use a virtual environment, or add --user: pip install --user pylint

SSL: CERTIFICATE_VERIFY_FAILED

Cause: pip cannot verify PyPI's SSL certificate — common behind corporate proxies.

Fix: Try: pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org pylint

Recent Releases

VersionReleased
4.0.5 latest 2026-02-20
4.0.4 2025-11-30
4.0.3 2025-11-13
4.0.2 2025-10-20
4.0.1 2025-10-15

Full release history on PyPI →

Manage pylint

Upgrade to latest version

pip install --upgrade pylint

Install a specific version

pip install pylint==4.0.5

Uninstall

pip uninstall pylint

Check what is installed

pip show pylint

Last updated: 2026-04-11 • Data from PyPI