安装了linter-pep8后出现此错误。
Error: spawn pycodestyle ENOENT
at exports._errnoException (util.js:1026:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:359:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
答案 0 :(得分:24)
错误是由包从 linter-pep8 重命名为 linter-pycodestyle v2.0.0
引起的<强>解决方案强>:
sudo pip uninstall pep8
sudo pip uninstall pycodestyle
sudo pip install pycodestyle
apm uninstall linter-pep8
apm install linter-pycodestyle
which pycodestyle
来检查是否正确安装了 pycodestyle 。它应返回 pycodestyle 的路径(例如/usr/local/bin/pycodestyle
)。您可以在原子&#39;的可执行路径设置中设置此路径。 linter-pycodestyle 包 - 但它应该默认使用