Reputation:
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
?
Upvotes: 11
Views: 50009
Reputation: 2884
Rather than messing with existing entires in PATH
, consider appending to it the location from pip.
It usually is ~/.local/bin
(consistent with systemd's file-hierarchy).
Good place to add/modify environmental variables is ~/.profile
file.
You do it by adding the following line:
export PATH="$HOME/.local/bin:$PATH"
You may also consider ~/.pam_environment
(but it has slightly different syntax).
For those wondering about the actual answer to the question:
It used to be somewhat possible in old versions of Python 3, but the option got patched away.
Upvotes: 28