My Ubuntu is 14.04, which has Python 2.7.6 by default.
The latest Python 2.x is 2.7.9. I am thinking whether to install 2.7.9 from its official site, just in case that something is available in 2.7.9 but not in 2.7.6?
If I install python 2.7.9, is it a goo uninstall my 2.7.6? Does Ubuntu 14.04 depend on python 2.7.6 specifically?
So I can't uninstall 2.7.6,right?
How can I avoid overwriting my default 2.7.6 when I install 2.7.9 from its source?
If I install 2.7.9, will I have to call it explicitly to distinguish from calling 2.7.6? How can I make it the default one for my use (i.e. the command
python
will be 2.7.9), while letting the system using 2.7.6 as its default one?
python
will be 2.7.9), while letting the system using 2.7.6 as its default one? – Tim Mar 17 '15 at 12:02/usr/bin/python
is used by the programs in the official repository. To change this you need to modify all Python programs which use it. You can use./configure --prefix=/opt/python-2.7.9/
to install your python into/opt/python-2.7.9/
so it doesn't override the Ubuntu one. If you have more questions about how to compile your own python it's probably better to ask new question about that. – Florian Diesch Mar 17 '15 at 19:23