简体   繁体   English

收到错误消息“ Linter pylint未安装”

[英]Getting error message “Linter pylint is not installed”

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". 我正在尝试在Windows上使用vscode编写一些python,但是由于某些原因,当我尝试运行它时,出现错误消息“未安装Linter pylint”。 It also says "The terminal process command 'C:\\cygwin\\bin\\bash.exe' failed to launch. 它还说:“终端进程命令'C:\\ cygwin \\ bin \\ bash.exe”无法启动。

I saw this thread Linter pylint is not installed , and have tried to do the top answers to no avail. 我看到未安装此线程Linter pylint ,并且尝试了无济于事的最佳答案。 I don't know where to type some of the instructions (I have tried both the command prompt and cygwin terminal on Windows). 我不知道在哪里键入一些说明(我在Windows上尝试了命令提示符和cygwin终端)。 This just gives me nonsense about "no pylint in _____", which is long address. 这只是让我胡说八道:“ _____中没有pylint”。

Literally just using this code: 从字面上看只是使用此代码:

print("hello world")

You can turn off Pylint w/ "python.linting.enabled": false or explicitly Pylint with "python.linting.pylintEnabled": false . 您可以使用"python.linting.enabled": false关闭带有"python.linting.pylintEnabled": false

But if you want Pylint then the issue is cygwin isn't working as your shell in order to run Pylint. 但是,如果您要使用Pylint,则问题在于cygwin无法作为运行Pylint的shell。 As well, the Python extension does not support cygwin and so there's no specific way to suggest help on how to fix it. 同样,Python扩展不支持cygwin,因此没有特定的方法可以建议如何修复它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM