Noufal Ibrahim's answer works if you execute Pylint manually.
If you execute Pylint from you editor/IDE, you need to configure the plugin correctly.
It can get tricky. This may be considered a bug of each IDE/plugin, but that's how it is.
Modifying /usr/bin/pylint to write #!/usr/bin/env python as suggested in another answer fixes this for every use of Pylint (manual use, or any editor integration).
However, at least in Debian, using #!/usr/bin/python is a design choice, not a bug. See here for the rationale.
To avoid modifying that system file, one can create a copy of /usr/bin/pylint in /usr/local/bin:
cp /usr/bin/pylint /usr/local/bin/pylint
vi usr/local/bin/pylint # Edit the file to use /usr/bin/env python
This won't be broken by a Pylint update, but still infringes Debian's "strongly preferred choice".
This method requires root privileges. An unprivileged user may create an alias
alias pylint='/usr/bin/env python $(which pylint)'.
I always develop in virtualenv and I set up a postmkvirtualenv hook to install Pylint and flake8 automatically when creating a virtualenv, so I don't use the versions distributed by Debian anymore.
which pylintand where is your venv?pip install pylintwith your venv active,which pylintshould point to~/virtenvs/my_envs/bin/pylint~/virtenvs/my_env/bin/pylintfile?