Upgrading to python three


(j) #1

i was wondering how i would install python three


(Abdel Rhman Anter) #2

sudo apt install python3


(Abdel Rhman Anter) closed #3

(Lorenzo "Palinuro" Faletra) #4

parrot includes these versions of python by default

python2.7
python3.6
python3.7

the following terminal commands point to python 2.7:

python
python2
python2.7

the following terminal commands point to python 3.6:

python3
python3.6

the following terminal commands point to python 3.7:

python3.7

further notes on python launchers in debian

python points to python2 by default because there is a lot of python2 legacy code that needs the python launcher to provide python2 to work as expected.

the python command will be probably converted into python3 after python 2 deprecation (january 2020).

if you need to use python 3, then launch python3 instead

python3 currently points to python 3.6, but it may point to python 3.7 in the future. Use the explicit python 37 launcher if you need the latest version.

why all this complex shit

this is not a parrot policy, this is how debian handles python versions and legacy code support, which may differ from other distributions.