Atom linter-flake8无法生成(不在PATH中) [英] Atom linter-flake8 failed to spawn (not in PATH)

查看:268
本文介绍了Atom linter-flake8无法生成(不在PATH中)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Atom中安装了linter-flake8软件包.我收到此错误:

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

[Linter]运行Flake8错误错误:无法生成命令flake8.确保已安装flake8并且在您的PATH上

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

我确定flake8在PATH中.看看我附上的图片.我尝试输入flake8设置的可执行路径,但仍然无法正常工作.我使用Windows 10并且安装了python 2.7和3.5. 2.7安装在C:/python27中,而35安装在用户/本地文件夹中(请参阅附件).

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 ?

错误消息:

确认在两个python版本中都安装了flake8:

confirm flake8 installed in both python version :

试图添加path,但是它们都不起作用:

Tried to add path , but none of them works :

我的环境路径包含python lib(在底部):

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

推荐答案

您需要找到flake8在系统上的可执行文件. 当您拥有Windows时,您需要在CMD中执行以下命令:

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

,然后将生成的路径添加到PATH变量. 就我而言,是

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

C:\ ProgramData \ Anaconda3 \ Scripts

C:\ProgramData\Anaconda3\Scripts

这篇关于Atom linter-flake8无法生成(不在PATH中)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆