获取错误消息“未安装 Linter pylint" [英] Getting error message "Linter pylint is not installed"

查看:33
本文介绍了获取错误消息“未安装 Linter pylint"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Windows 上使用 vscode 编写一些 python 代码,但是由于某种原因,当我尝试运行它时,我收到错误消息未安装 Linter pylint".它还说终端进程命令'C:\cygwin\bin\bash.exe' 无法启动.

I am trying to code some python using vscode on Windows, but for some reason when I try to run it I get the error message "Linter pylint is not installed". It also says "The terminal process command 'C:\cygwin\bin\bash.exe' failed to launch.

我看到了这个帖子 未安装 Linter pylint ,并尝试这样做顶级答案无济于事.我不知道在哪里输入一些说明(我在 Windows 上尝试了命令提示符和 cygwin 终端).这只是让我胡说_____ 中没有 pylint",这是一个长地址.

I saw this thread Linter pylint is not installed , and have tried to do the top answers to no avail. I don't know where to type some of the instructions (I have tried both the command prompt and cygwin terminal on Windows). This just gives me nonsense about "no pylint in _____", which is long address.

实际上只是使用此代码:

Literally just using this code:

print("hello world")

推荐答案

您可以使用 "python.linting.enabled": false 或使用 "python 显式关闭 Pylint.linting.pylintEnabled": false.

You can turn off Pylint w/ "python.linting.enabled": false or explicitly Pylint with "python.linting.pylintEnabled": false.

但是如果你想要 Pylint,那么问题是 cygwin 不能作为你的 shell 来运行 Pylint.同样,Python 扩展不支持 cygwin,因此没有具体的方法来建议如何修复它.

But if you want Pylint then the issue is cygwin isn't working as your shell in order to run Pylint. As well, the Python extension does not support cygwin and so there's no specific way to suggest help on how to fix it.

这篇关于获取错误消息“未安装 Linter pylint"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆