How to make pip install to PATH on Linux?

12,507

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"
Share:
12,507
Admin
Author by

Admin

Updated on June 27, 2022

Comments

  • Admin
    Admin almost 2 years

    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?