Failed to install pylint for Python 3

I need to run checker on top of my Python 3 code to point out possible flaws. PyChecker does not work with Python 3. I tried installing Pylint, but it fails. The error message does not help me (see Box) .

Pylint Readme claims that:

Pylint must be compatible with any python> = 2.2.

However, the page is somehow out of date.

Is pylint compatible with Python 3? If so, how to install it? If not, are there any alternatives I should explore?

+5
source share
3 answers

Yes, versions of pylint> 0.23.0 support Py3K.

, , http://www.logilab.org/82417 ( Pylint Jython (jython2.5.1))

:

$ NO_SETUPTOOLS=1 python3.2 setup.py install --no-compile
$ easy_install-3.2 logilab-common
$ easy_install-3.2 logilab-astng
# You can probably use pip instead of easy_install...
+6

pylint Python3 Linux (Ubuntu12.04, , ) . , , , . [ pylint apt-get pip, , .] , , . - ( ), :

  • , /usr/bin/python /usr/bin/python 3.2 /usr/bin/python 2.7 [edit Python2 , reset python2 pylint.]
  • sudo vi/usr/local/lib/python3.2/dist-packages/easy-install.pth pylint logilab. [ , .]
  • pylint http://pypi.python.org/pypi/pylint/0.26.0. ..
  • cd pylint 'sudo python3 setup.py install'

"pylint" , . . :

  • sudo chmod a + rx/usr/local/bin/pylint
  • sudo chmod a + rX -R/usr/local/lib/python3.2

!

EDIT: Linux , , (logilab-common logilab-astng) , , . , , Python 2 , , pip.

0

For Ubuntu 14.04:

sudo aptitude install python3-pip
sudo pip3 install pylint
/usr/local/bin/pylint your_file.py
0
source

All Articles