0

When I type python into my Ubuntu 18.04 terminal, python3 starts. The thing is I haven't set an alias for python, e.g. see here. Could anyone explain to me how is this possible and what I would need to change if I want to reverse it?

cgss
  • 121
  • 5

1 Answers1

1

Open the terminal and type:

sudo apt install python-is-python2

This is a convenience package which ships a symlink to point /usr/bin/python interpreter at the current default python2.

karel
  • 122,292
  • 133
  • 301
  • 332