The default .bash_profile
for user accounts in EL7 did include:
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH
In EL8 it does not. However, the default .bashrc
in EL8 does contain:
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
then
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
export PATH
See? Already there and prepending, while EL7 did append.
If an user account does not have those default .bash_profile and .bashrc ā¦ well, there are legitimate scenarios that can lead to that.
Why the need for pip
anyway, if you already do have it (pip3)? You can set shell alias too: pip=pip3.