3 ms·
Python 3 is installed by default, and Python 2 is no longer installed by default on Ubuntu Server since 16.04. Both versions can be installed concurrently. Pyt
by rlpb 10y ago
Python 3 is installed by default, and Python 2 is no longer installed by default on Ubuntu Server since 16.04.
Both versions can be installed concurrently. Python 2 is available under /usr/bin/python2 if it is installed. Python 3 is available under /usr/bin/python3 if it is installed.
/usr/bin/python points to Python 2 (or nothing, if Python 2 is not installed). This is the upstream recommendation from PEP 394 (https://www.python.org/dev/peps/pep-0394/ https://www.python.org/dev/peps/pep-0394/) and I don't see Ubuntu diverging from this unless upstream's recommendation changes.
- dustinkirkland 10y agoEverything @rlpb just said here is spot on ;-) Definitive +1.