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

2019-06-08 12:30发布

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: error message

confirm flake8 installed in both python version : enter image description here

enter image description here

Tried to add path , but none of them works : enter image description here

enter image description here

my env path has included the python lib (at the bottom) : enter image description here

1条回答
萌系小妹纸
2楼-- · 2019-06-08 12:51

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

查看更多
登录 后发表回答