I am working on a CentOS box and trying to install a newer version of python. CentOS requires python 2.6.6 in order to run properly. To solve this I installed a second python (v 2.7.6) in /usr/local/bin. I then created a symbolic link to it named python. Unfortunately, because my environment path variable is this:
And /usr/local/bin comes before /usr/bin it uses my new install of python as the default system install, which breaks the CentOS requirement of having python 2.6.6 as the default.
Deleting the symbolic link would fix this problem. However, if I ever install a newer version of python, I'd like to be able to just switch the symbolic link rather than change all of my scripts to point to the newer version.
Is there a way to change the order in which these variables are added to the path? For example, could I make the path look like this:
It's easy to find posts detailing how to add to the path, or overwrite it entirely, but no one seems to do this. Is there a reason why you wouldn't want to change this order?