Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to install PyLint for Python 3

📅 2015-Jan-02 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ pylint, python3 ⬩ 📚 Archive

PyLint is a useful tool to improve code quality and to ensure that it complies with PEP-8 style guidelines. Sadly, Ubuntu only ships with the PyLint for Python 2.x. If you are using Python 3.x, then do the following:

$ sudo apt remove pylint
$ sudo apt install python3-pip
$ sudo pip3 install pylint
$ sudo apt install python3-tk
$ pylint ./foo.py
$ pylint-gui

Tried with: PyLint 1.4.0, PIP 1.5.4, Python 3.4.0 and Ubuntu 14.04


© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧