0

I'm using Ubuntu and I just updated my python3 from 3.8 to 3.9 but when I'm running Python3 on terminal it opens the 3.8 version and not the 3.9.
How can I change this? thanks a lot.
python3 --version

7
  • I wrote an answer here that covers a very similar situation. Commented Dec 24, 2020 at 17:02
  • 1
    @wjandrea Note that the answer is somewhat outdated: Python2.7 is not included in ubuntu20.04, and there is specifically a package python-is-python3. Commented Dec 24, 2020 at 17:06
  • @wjandrea Also, I would argue that it is version specify. (Since you removed the tag) Commented Dec 24, 2020 at 17:06
  • I think since 3.9 python is just python (not python3) Commented Dec 24, 2020 at 17:09
  • @MegaIng Good point about Python 2. I'm aware of that but not too familiar. Could you explain how the question is specific to Python 3.9? Commented Dec 24, 2020 at 17:12

1 Answer 1

2

You don't. python3.8 is a distribution used by other programs on Ubuntu, which expect that dependencies on python3-<package name> install in a way that python3 can import them. If you change the linkage, any number of (possibly important) packages might break, e.g. gnome-terminal. Just use python3.9 explicitly.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.