3

I am not very experienced at Linux but I recently installed Ubuntu 19.10 and I am trying to use Python 3 and the default is Python 2. I spent a lot of time reading how to configure Ubuntu to run Python 3 but I felt to do it. Can anyone please help me? I used these commands but nothing works...

sudo update-alternatives --list python
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7
Eliah Kagan
  • 119,640
user1016220
  • 31
  • 1
  • 2

1 Answers1

1

Changing the default Python interpreter is probably no good idea, as system tools could depend on the Python version.

As Python 2 support officially ends at the beginning of 2020, it is certainly a good idea to use Python 3 when you create new projects.

In order to use Python 3, just enter python3 in the terminal.

There is no need to change the default behavior.