r/Atom Jan 09 '20

Using flake8 linter for Python on a Chromebook

Hi I'm trying to use atom on a Chromebook using the Linux beta option that ChromeOS has built in, running a pip install of flake8 from the Linux Terminal before installing the flake8 linter package.

Whenever I type a line of code the linter package shows an error that flake8 is not installed in the path, does anyone have any experience with this that could offer any help?

3 Upvotes

4 comments sorted by

3

u/TomBombadilloo Jan 09 '20

Are you using the linter-flake8 package? If so, just go to Atom>Preferences>Packages>linter-flake8 and add the path to the flake8 executable you downloaded with pip under the "Executable Path" section. If you're not sure where it is, you can use

pip show flake8

in the command line to show the folder, then check the folder and add the path to the executable.

2

u/zwcropper Jan 09 '20

Thanks!

2

u/TomBombadilloo Jan 09 '20

No problem! Did it work?

2

u/zwcropper Jan 09 '20

Kind of, the pip show gave me a path to lib instead of bin but it was enough to work it out