Python 3 PIP Warning: Consider adding this directory to PATH

Case: Running Ubuntu 20.04 w/ Python 3.8 (python3 executable). Installing a script with pip install returns a warning that the path of the script is not present as an environment variable:

 WARNING: The script undervolt is installed in '/home/ubuntuUser/.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.

Solution

  1. nano ~/.bashrc
  2. Ctrl+End to reach the end of the file.
  3. On a new line, enter: export PATH=$PATH:/home/amnesia/.local/bin
  4. Save. No need to restart the terminal.

Based on

Did this solve your issue?