Installing Pylint is quite easy. Simply run the install command and it will install Pylint and all of the necessary dependencies.
Install Pylint on MacOS
Open a terminal program, and verify you have the necessary tools installed:
- Type
python --version. If it returns Python 3.x.x, typepip --versionto verify you havepipinstalled. - If
--versionreturnsPython 2.x.x, typepython3 --versionto verify you have Python 3 installed. Then, typepip3 --versionto verify you have it installed.
To install Pylint, run the following command:
pip3 install pylint- If
python --versionreturned3.x.x, run:pip install pylint
Install Pylint on Windows
Open the Command Prompt application. (You can search for "command" to find it.) Consider pinning it to the task bar as you'll be using it often!
Open Command Prompt, and verify you have the necessary tools installed:
- Type
python --versionto verify you have3.x.xinstalled. Then typepip --versionto verify you havepipinstalled.
To install Pylint, run the following command:
pip install pylint
Now that you have Pylint installed, you'll want to know how to configure what it checks for. If this is the first time you've installed Pylint, you can skip the next section on this page.
Upgrading Pylint
If you've had Pylint installed for a while, you may want to consider upgrading it. First, to check the version of Pylint you're running, run the following command:
pylint --version
To upgrade to the absolute latest version, run the following command:
pip install pylint --upgrade
If you want to install a specific version, run the following command with the version you wish to install. For example, to install version 2.7.1, run the following:
pip install --force-reinstall pylint==2.7.1
That's all there is to upgrading Pylint. Now, it's time to learn about configuration.
Page last edited March 08, 2024
Text editor powered by tinymce.