Linter pylint is not installed

前端 未结 15 1798
遥遥无期
遥遥无期 2020-12-12 12:56

I want to run python code in Microsoft Visual Studio Code but it gives an error:

\"Linter pylint is not installed\"

I installed:

15条回答
  •  死守一世寂寞
    2020-12-12 13:07

    The following fix works for me. Ubuntu 16 terminal type:

    $ pip3 install pylint
    $ sudo apt install python3-pip
    

    if your python3 is installed in the /usr/bin/python3.6, run the following command, and it should work fine. Last, make sure your VS-code is running python3 interpreter not python2.7 which is default in Ubuntu.

    $ /usr/bin/python3.6 -m pip install -U pylint
    

提交回复
热议问题