question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: pyenv: flake8: command not found

See original GitHub issue

Hi. I was trying using linter-flake8 in El Capitan(10.11.1) and encountered the following error. I personaly use pyenv and pyenv-virtualenv and pyenv-2.7.10 in the error is the name of the environment.

Error: pyenv: flake8: command not found

The `flake8' command exists in these Python versions: 2.7.10/envs/pyenv-2.7.10 pyenv-2.7.10
Error: pyenv: flake8: command not found
The `flake8' command exists in these Python versions:
  2.7.10/envs/pyenv-2.7.10
  pyenv-2.7.10
    at parameters.exit (/Users/oonokenta/.atom/packages/linter-flake8/node_modules/atom-linter/lib/helpers.js:75:20)
    at triggerExitCallback (/Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:213:47)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:220:18
    at Socket.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:98:18)
    at emitOne (events.js:82:20)
    at Socket.emit (events.js:169:7)
    at Pipe._onclose (net.js:469:12)

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
glasswalk3rcommented, Nov 14, 2020

A bit late to provide some help other that find themselves in the same situation, but if you’re using pyenv, don’t bother trying to configure the path of the plugin or even opening Atom from inside the project, just install flake8 in the “global” python that you will use in the same virtualenv and it will work just fine. Just don’t ask me why… never got the “shim” clearly.

1reaction
Arcanemaguscommented, Jan 12, 2016

Just to make sure you are launching Atom from the proper environment, follow these steps:

  1. Close all instances of Atom
  2. Open a terminal
  3. Activate any necessary virtualenv
  4. Verify that flake8 works from this terminal
  5. Launch Atom from this location with atom .
Read more comments on GitHub >

github_iconTop Results From Across the Web

zsh: command not found: flake8 but flake8 is installed
The flake8 script isn't in your path. First figure out where it's installed: pip show -f flake8. You should see the install location, ......
Read more >
flake8: command not found after installing it with pip on arch ...
You can find out what your path is by running echo $PATH . The message indicates where it installed flake8, and that the...
Read more >
Installation troubleshooting — ROS 2 Documentation: Humble ...
Sometimes rclpy fails to be imported because the expected C extension libraries are not found. If so, compare the libraries present in the...
Read more >
Advanced Usage of Pipenv - Read the Docs
Dependencies of wheels provided in a Pipfile will not be captured by $ pipenv lock . ... We're actively working to solve this...
Read more >
Python Best Practices for a New Project in 2021 - Alex Mitelman
Make sure to run this command not from virtual environment but from the ... VS Code marks red some code that linter found...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found