New Linux VPS, installing Python and a few other tools I like to use. Did apt-get update
and apt-get upgrade
, and I noticed when I did apt-get install python
it defaulted to version 2.7. (I can, however, do apt-get install python3
to install Python 3)
I was just curious why this wouldn't install Python 3 by default, it seems like would be a natural upgrade, unless this is due to not breaking scripts that are Python based. It is also mentioned when Googling "when was python 3 released" that it was "a major, backwards-incompatible release," so this to me is the most likely reason.
In short, why does apt-get install python
install Python 2.7 and not 3? Why is Python 3 not the default version by now (it was released in December 2008)?
apt-get install python3
and run python 3 scripts withpython3 script.py
.alias python='python3'
to avoid using python2 accidentialy