Score:0

Changing the default version of Python

br flag

I'm trying to change my terminal's default python version to 3.9 from 3.8 and I think I broke something before since I tried to change the priority with sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1 but still python --version yielded 3.8.10 and weirdly enough python3 --version yielded 3.8.2

I tried too lookup my alternatives with sudo update-alternatives --config python3

and got:

  Selection    Path                Priority   Status
---------------------------------------------
  0            /usr/bin/python3.8   2         auto mode
  1            /usr/bin/python3.8   2         manual mode
* 2            /usr/bin/python3.9   1         manual mode

only when I explicitly wrote python3.9 it activated it, but still the default python command activated python 3.8.10 (and still weirdly enought python3 activated a different version).

I then tried to remove the 3.8 alternatives and successfully was left with 3.9 as the auto & manual and still got the same result, like something that I cannot seem to find has a higher/default priority over it.

Any help would be appreciated.

yang mandi avatar
pk flag
What Ubuntu version are you using?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.