【问题标题】:How to add pylint for Django in vscode manually?如何在 vscode 中手动为 Django 添加 pylint?
【发布时间】:2020-05-19 13:54:18
【问题描述】:

我在 vscode 中创建了一个 Django 项目。通常,vscode 会自动提示我安装 pylint,但这次没有(或者我错过了)。即使一切运行顺利,我仍然会看到导入错误。如何为这个项目手动安装 pytlint?

另外,在 vscode 中,我从未真正创建过“工作区”。我只是创建并打开文件夹,效果很好。

ps。我正在使用 pipenv。不知道这些信息有多么必要。

【问题讨论】:

    标签: python django visual-studio-code pylint


    【解决方案1】:

    您好,您必须首先激活您的 venv,然后安装 pylint (pip install pylint)

    在 vscode 中:ctrl+shift+P 然后输入 linter(选择“python:select linter”)现在你可以选择你的 linter (皮林特)

    希望对你有帮助

    【讨论】:

      猜你喜欢
      • 2020-10-09
      • 1970-01-01
      • 2021-01-21
      • 2022-12-28
      • 2021-02-11
      • 2018-01-01
      • 2020-02-13
      • 1970-01-01
      • 2020-10-16
      相关资源
      最近更新 更多