【发布时间】:2021-01-08 13:18:42
【问题描述】:
每次我启动 VS Code 时,都会弹出一个带有红色叉号的小窗口,上面写着“Linter pylint 未安装”,其中包含 Install、Select Linter 或 Do not show again 三个选项。但是,当我点击Install 时,它会在/usr/bin/python 打开集成终端并告诉我“要求已经满足,跳过升级”。当我点击Select linter 时,我可以在列表末尾选择pylint。 which pylint 返回“找不到 pylint”。这让我抓狂。它最近才开始出现这种行为不端,但我不确定是什么原因造成的。 我已经尝试了这个帖子中的所有答案 Linter pylint is not installed 和这个帖子 Getting error message "Linter pylint is not installed" 但没有任何改变。 pip3 install pylint 返回“已满足要求”。我需要一些帮助。
这些是我的 linting 设置:
"python.pythonPath": "/usr/bin/python",
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.linting.pylintPath": "python -m pylint",
"python.linting.pylintArgs": [
"--extension-pkg-whitelist=pygame",
"--errors-only"
],```
【问题讨论】:
标签: python visual-studio-code vscode-settings pylint