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/<username>/.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 applies to this intel undervolt script. Apply solution at your own risk if your case is different.


  1. nano ~/.bashrc
  2. Ctrl+End to reach the end of the file.
  3. On a new line, enter: export PATH=$PATH:/home/$USER/.local/bin
  4. Save file, restart terminal.
    IF it doesn’t work, try logging out or rebooting. (thanks for the feedback!)

Hi! Please help me improve this page.
If this doesn’t work for you, send feedback by voting NO below and sharing with me:
– what OS you are using,
– what is your display manager,
– what other difficulties you might have encountered.
I will try to update the page promptly. Thanks.

Based on

Did this solve your issue?