Set Python 3.8 as default on Ubuntu 22.04

Linode Staff

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.

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

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct