Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/363.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 原子能';t在Windows 10上生成Flake 8_Python_Windows_Windows Subsystem For Linux_Flake8 - Fatal编程技术网

Python 原子能';t在Windows 10上生成Flake 8

Python 原子能';t在Windows 10上生成Flake 8,python,windows,windows-subsystem-for-linux,flake8,Python,Windows,Windows Subsystem For Linux,Flake8,在Windows 10上尝试将Atom与linter-Flake 8软件包一起使用时出现错误: Error: spawn flake8 ENOENT at getENOENTError (C:\Users\ME\.atom\packages\linter-flake8\node_modules\sb-exec\lib\helpers.js:159:15) at ChildProcess.<anonymous> (C:\Users\ME\.atom\packages\l

在Windows 10上尝试将Atom与linter-Flake 8软件包一起使用时出现错误:

Error: spawn flake8 ENOENT
    at getENOENTError (C:\Users\ME\.atom\packages\linter-flake8\node_modules\sb-exec\lib\helpers.js:159:15)
    at ChildProcess.<anonymous> (C:\Users\ME\.atom\packages\linter-flake8\node_modules\sb-exec\lib\index.js:50:46)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:877:16)
    at Socket.<anonymous> (internal/child_process.js:334:11)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at Pipe._handle.close [as _onclose] (net.js:493:12)
错误:生成薄片8 enoint
在GetEnentError(C:\Users\ME\.atom\packages\linter-flake8\node\u modules\sb exec\lib\helpers.js:159:15)
在这个过程中。(C:\Users\ME\.atom\packages\linter-flake8\node\u modules\sb exec\lib\index.js:50:46)
两点钟(events.js:106:13)
在ChildProcess.emit(events.js:191:7)
在maybeClose(内部/子进程js:877:16)
在插座上。(内部/子进程js:334:11)
在emitOne(events.js:96:13)
在Socket.emit(events.js:188:7)
at Pipe.\u handle.close[as\u onclose](net.js:493:12)
我假设这是因为我使用WSL设置了基本上是我的Ubuntu Python开发环境的副本—Pyev、virtualenv、git,并且我在virtualenvs中安装了flake8,因为我使用的是不同的Python版本

我通常从项目的virtualenv中启动Atom,但由于我必须从Windows上的Bash外部启动Atom,我认为它不知道我安装的flake8


我说得对吗?我的第一个解决方案是在系统范围内安装flake8,然后让linter-flake8指向它,但这似乎是一种很麻烦的方法。我应该如何解决这个问题

查看linter-Flake 8的来源,似乎可以设置


但这需要在每次启动时对其进行配置。

Atom找不到Flake8可执行文件是正确的。我相信linter-flake8允许您指定python可执行文件的路径,尽管他们应该使用该路径来执行
python-m flake8
。我选中了,它只是有一个选项来指定指向flake8的路径,而不是指向python的路径。我认为这是这个问题的重复: