我刚开始使用Atom,并尝试使用pylint设置一个linter,但是每次linter激活时,我都会得到:
linter-registry.js:137 [Linter] Error running Pylint Error: Failed to spawn command `C:\WINDOWS\system32\cmd.exe`. Make sure `C:\WINDOWS\system32\cmd.exe` is installed and on your PATH(…)三次。
发布于 2021-02-04 17:01:54
对于那些正在使用Anaconda的人来说,我发现这很有帮助。转到Anaconda提示符并键入以下内容: where pylint

您可能会得到以下两个结果: C:\Users\USERNAME\anaconda3\Scripts\pylint.bat C:\Users\USERNAME\anaconda3\Scripts\pylint.exe
复制带有pylint.exe的文件,并将其粘贴到Atom中Pylint包的可执行路径中。
如果您像我一样是Atom的初学者,可以通过以下方式找到包的可执行路径:文件->设置->包->在搜索栏中键入Pylint ->单击设置并向下滚动找到可执行路径,然后使用pylint.exe粘贴该路径

https://stackoverflow.com/questions/44272665
复制相似问题