My Pylint doesn't point to the virtualenv
Python interpreter. Here is the output that I get when I run pylint --version
:
pylint --version
Output:
pylint 0.21.1,
astng 0.20.1, common 0.50.3
Python 2.6.6 (r266:84292, Jul 10 2013, 22:48:45)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)]
In virtualenv
, I have Python 2.7 installed. How can I make Pylint point to the 2.7 version in the virtual environment?
A cheap trick is to run (the global) Pylint using the virtualenv Python instance.
You can do this using python $(which pylint)
instead of just pylint
. In Z shell (executable zsh
), you can also do python =pylint
.