enabling pylint_django plugin in vscode, pylint stop working

前端 未结 5 1592
走了就别回头了
走了就别回头了 2021-02-12 11:49

That\'s my user settings in vscode

{
  \"python.pythonPath\": \"/Users/cristiano/miniconda3/envs/django-rest-2/bin/python\",
  \"python.linting.pylintEnabled\":          


        
5条回答
  •  星月不相逢
    2021-02-12 12:20

    I just got the same issue. Like @J0hnG4lt said, I had a problem with the python path. I didn't point to the path of the environment, which I have installed pylint_django. This config is work for me. Thanks @Manu.

    "python.pythonPath": "/Users/mc976/Documents/Programming/Python/Practice/music_service/venv/bin/python3",
    "python.linting.pylintEnabled": true,
    "python.linting.pylintArgs": [
        "--disable=C0111",
        "--load-plugins",
        "pylint_django"
    ]
    

    Besides, I think you should check your environment to make sure that you have correctly installed pylint_django by using pip list.

提交回复
热议问题