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.