enabling pylint_django plugin in vscode, pylint stop working

前端 未结 5 1587
走了就别回头了
走了就别回头了 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条回答
  •  闹比i
    闹比i (楼主)
    2021-02-12 12:18

    My issue was more prosaic (but perhaps it will help other forehead slappers like myself). Run the PIP install in the correct virtualenv directory!

    pip install pylint-django --upgrade

    Also note that plugin errors cause Pylint to completely fail to load silently. Start with blank pylintArgs and slowly add them back one at a time to see where things go awry.

提交回复
热议问题