I have installed a python interpreter to a user-directory on a system where I do not have root-access. This system has an older version of Python already installed. I want to make my local installation the default for me. So basically, when I type
python, instead of
/usr/bin/python I want
~/MyPythonDir/python to be invoked.
Thanks in advance
EDIT: I have changed my
PATH to look like this right after I log in:
echo $PATH ~/MyPythonDir:OtherPathStuff
MyPythonDir is the directory containing the python executable. However, when I type
python2.7, but when I try to execute that it says it cannot find it.