-->
  • Recent Articles

    How to install pylint in Linux?

    How to install pylint in Linux?


    How to install pylint in Linux

    Pylint is a tool that checks for errors in Python code, tries to enforce a coding standard and looks for code smells. It can also look for certain type errors, it can recommend suggestions about how particular blocks can be refactored and can offer you details about the code's complexity.

    Let's See how to install pylint.

    Ubuntu/Debian

    Step 1 :
    Upgrade the package.
    upgrade is used to install the newest versions of all packages currently installed on the system from the sources enumerated in /etc/apt/sources.list. 

    root@c1b70902da09:/# apt-get upgrade
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Calculating upgrade... Done
    The following packages will be upgraded:
      curl libcurl3 libcurl3-gnutls
    3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

    Step 2:
    Install the pylint now.

    root@c1b70902da09:/# apt-get install pylint
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following additional packages will be installed:
      blt libtcl8.6 libtk8.6 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxft2 libxrender1 libxss1 python-astroid
      python-backports.functools-lru-cache python-isort python-lazy-object-proxy python-tk python-wrapt tk8.6-blt2.5 x11-common
    Suggested packages:
      blt-demo tcl8.6 tk8.6 pylint-doc python-mccabe tix python-tk-dbg

    Fedora


    dnf install pylint

    openSUSE


    zypper install pylint  # python2.7
    zypper install python3-pylint

    FreeBSD


    portmaster devel/pylint

    OS X


    pip install pylint

    From source

    git clone https://github.com/PyCQA/pylint
    git clone https://github.com/PyCQA/astroid

    Arch Linux

    pacman -S python-pylint



    No comments