I'm trying to set up a Python development environment on Ubuntu 14.04. I wanted to install the latest version of Python 2 (2.7.11) alongside the OS version so I followed the instructions here: How to use Latest Python 2.7.x “The Right Way” on Ubuntu 12.04 LTS? The basic steps were:
sudo add-apt-repository ppa:fkrull/deadsnakes-python2.7 sudo apt-get update sudo apt-get install python2.7
I thought this would install a second copy in addition to the default 2.7.6 (like how Hombrew works in MacOS), but now when I run
python --version I get
which python returns
/usr/bin/python, same for
which python2.7. Nothing is visibly broken in the OS but I was hoping to avoid this sort of collision. Is there a better way of doing this?
UPDATE: I see now that in the release notes it says "KEEP IN MIND that this PPA will replace a core system component (i.e. Python 2.7)!" I guess that is by design, but I am still wondering if there's a less disruptive way of installing the latest Python 2.7 via package manager.