Linter pylint is not installed

前端 未结 15 1771
遥遥无期
遥遥无期 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:03

    I had this issue as well and found the error's log regarding permission or something. So, I ran Visual Studio Code with admin. privileges and ran "pip install pylint" in the terminal. Then the error seemed to be fixed.

    (I run Visual Studio Code on windows 10.)

    0 讨论(0)
  • Try doing this If you're running VS Code on a Windows machine and getting this error (I'm using Windows 10).

    Go to the settings and change the python path to the location of YOUR python installation.

    i.e

    Change: "python.pythonPath": "python"

    To: "python.pythonPath": "C:\\Python36\\python.exe"

    And then: Save and Reload VS Code.

    Now when you get the prompt telling you that "Linter pylint is not installed", Just select the option to 'install pylint'.

    Since you've now provided the correct path to your Python installation, the pylint installation will be successfully completed in the Windows Powershell Terminal.

    0 讨论(0)
  • 2020-12-12 13:06

    I had the same problem. Open the cmd and type:

    python -m pip install pylint
    
    0 讨论(0)
  • 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
    
    0 讨论(0)
  • 2020-12-12 13:09

    This solved the issue for me:

    pip install pylint -U
    

    i.e. upgrade the pylint package.

    0 讨论(0)
  • 2020-12-12 13:10

    If you are using MacPorts, you may need to activate pylint and autopep8 after you've installed them, i.e.:

    sudo port select pylint pylint36 sudo port select autopep8 autopep8-36

    0 讨论(0)
提交回复
热议问题