Set Python 3.8 as default on Ubuntu 22.04
Trying to set Python 3.8 as default on my Ubuntu 22.04 instance but can't seem to get it to work. Any help is appreciated.
1 Reply
Hey, any more clarification would be helpful. Is Python 3.8 installed but not showing up as 3.8 when running python --version
? Also what command have you used to install this version of Python? Any error messages or additional insight to what may be the problem can be helpful in figuring out what’s wrong.
I was also able to find some links that might be helpful to your question.
https://unix.stackexchange.com/questions/410579/change-the-python3-default-version-in-ubuntu
https://www.linuxcapable.com/how-to-install-python-3-8-on-ubuntu-22-04-lts/
Seems that running sudo update-alternatives --set python /usr/bin/python3.8
has been the solution for some users but would first just try installing python 3.8 again using the sudo apt install python-is-python3
Hope this was helpful