本文介绍了如何在Ubuntu 16.04中将python3-flake8与Atom集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Ubuntu 16.04上使用命令 sudo apt-get install python3-flake8 安装了python3-flake8 然后继续将flake8 linter软件包安装在Atom上.但是在重新启动时显示以下错误错误:生成flake8 ENOENT .

I installed python3-flake8 on Ubuntu 16.04 with the command sudo apt-get install python3-flake8Then proceeded to install the flake8 linter package on Atom.However on restart it shows the following errorError: spawn flake8 ENOENT.

我不知道原子是否能够在我的系统上检测到flake8还是其他问题.

I do not know if atom is able to detect flake8 on my system or if it is some other kind of problem.

错误消息:

Error: spawn flake8 ENOENT
    at exports._errnoException (util.js:890:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:182:32)
    at onErrorNT (internal/child_process.js:348:16)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)

推荐答案

在Ubuntu 16.04中,flake8二进制文件可以在flake8软件包中找到,而不是在python3-flake8中找到( Xenial/16.04 Yakkety/16.10 ).安装此程序将使您可以在终端中使用flake8命令,并且还将允许Atom访问它并检查代码.

From Ubuntu 16.04, the flake8 binary can be found in the flake8 package rather than python3-flake8 (Xenial/16.04 and Yakkety/16.10). Installing this will allow you to use the flake8 command in the terminal, and will also allow Atom to access it and lint your code.

您可以使用以下命令正确安装flake8:

You can install flake8 correctly with:

sudo apt-get install flake8

这篇关于如何在Ubuntu 16.04中将python3-flake8与Atom集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-26 03:51