How to make pip install to PATH on Linux?

Viewed 19519

I installed PyInstaller via pip, but when I try to run it I get pyinstaller: command not found
After installation of the package the following warning was displayed:

WARNING: The scripts pyi-archive_viewer, pyi-bindepend, pyi-grab_version, pyi-makespec, pyi-set_version and pyinstaller are installed in '/home/kevinapetrei/.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.

Do you know how can I make it so pip installs everything straight to PATH?

1 Answers

Rather than messing with existing directories in PATH, consider adding the one pip installs to.

The best place to do so is ~/.profile file. You do it by adding to it the following line:

export PATH="$HOME/.local/bin:$PATH"
Related