I just installed Python 2.7 in our server, they had 2.4 installed before hand.
After I built the new version, my path is still pointing to the old version of python, do you know an easy way to change this.
I do not have sudo permissions nor root access.
Because you are on the server and don’t have root permissions, the best choice for you is to use virtualenv
Build Python 2.7, for example, as following:
Download
virtualen.pyfile and run:This will create an isolated Python 2.7 environment for you inside
my_environmentdirectory.To activate it run
source my_environment/bin/activateand that’s it. Nowpythonexecutable will be your Python 2.7. Additionally you will havepipinstalled and thus can easily install any additional libraries into your environment.