Note

This post is a thought. It's a short note that I make about someone else's content online. Learn more about the process thoughts

Here's my thought on ๐Ÿ’ญ python script is not found


When setting up a new machine, vm, docker image you might be installing command line tools from places like pip. They will often put executables in your ~/.local/bin directory, but by default your shell is not looking in that directory for commands.


  WARNING: The script dotenv is installed in '/home/falcon/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

To solve this you need to add that directory to your $PATH.


export PATH=$PATH:~/.local/bin

To make this change permanant add this line to your shell's init script, which is likely something like ~/.bashrc or ~/.zshrc.


This post was a thought by Waylon Walker see all my thoughts at https://waylonwalker.com/thoughts