Atom linter-flake8 failed to spawn (not in PATH)

丶灬走出姿态 提交于 2019-12-09 19:31:22

问题


i installed linter-flake8 package in Atom . I got this error :

[Linter] Error running Flake8 Error: Failed to spawn command flake8. Make sure flake8 is installed and on your PATH

i'm sure flake8 is in the PATH . Have a look at the image i attach. I try to input the executable path to the flake8 setting but still doesn't work. I use windows 10 and i have python 2.7 and 3.5 installed . The 2.7 is installed in C:/python27, while 35 is installed in user/local folder (see attachment).

Found similar case in this forum , but still can't make it work. Does anyone know the solution ?

error message:

confirm flake8 installed in both python version :

Tried to add path , but none of them works :

my env path has included the python lib (at the bottom) :


回答1:


You need to find where is executable of flake8 on your system. As you have Windows you need in CMD execute such command:

where flake8

and then resulting path add to PATH variable. In my case that was

C:\ProgramData\Anaconda3\Scripts



来源:https://stackoverflow.com/questions/50654434/atom-linter-flake8-failed-to-spawn-not-in-path

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!