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, usually something ending in site-packages
, and then the list of files - one of which may look like ../../bin/flake8
. Apply the relative path to the install location and you'll find the executable's path.
If you're using Homebrew on mac, there's a good chance the executable sits under /usr/local/bin
, but in any case you need to add that directory to your PATH
(search for "add directory to path in zsh") or specify the full path.
Finally, if the path is in PATH and it still doesn't find it, and you added it to the path just now, consider running rehash
which rebuilds zsh's hash of executables in the current PATH.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…