Say I compile Python 3 from source, configuring it with
--prefix=$HOME/.local and installing it.
$HOME/.local is in my path, and is preferred, now when I type
python3 in my shell, I get my Python installation, and not the default installed by Ubuntu. I would prefer this.
Would having this different
python3 on the path affect the system in any way? Does the system explicitly refer to
Furthermore, if I install packages in this new Python, they are accessible from the system Python as well, because Python looks in the
$HOME/.local directory. Does this mean I should install my personal Python somewhere else, so any packages installed are not found by the system path?
I am aware of
virtualenv, and it is not what I am asking about.