Score:-2

Updating to python 3.8 in Ubuntu 18.04

us flag

I am updating python to 3.8. After following some tutorials when I type:

python --version

I get

Python 3.7.4

If I type:

python3.8 --version

I get

Python 3.8.12

How can I get the python --version to say that I am using 3.8 ??

pLumo avatar
in flag
Which OS & version? Can you give us more details about "some tutorial"?
error404 avatar
us flag
Ubuntu 18.04. The tutorials: https://tech.serhatteker.com/post/2019-12/how-to-install-python38-on-ubuntu/ and https://www.itsupportwale.com/blog/how-to-upgrade-to-python-3-8-on-ubuntu-18-04-lts/
Score:3
us flag

When you need python 3.8, call it with python3.8.


You should not change the default python3.6 in Ubuntu 18.04. Otherwise, you may experience a lot of problems.

Run

sudo update-alternatives --config python3

And choose python3.6. You can also choose 3.8 here (at your own risk), but it may lead to nasty issues like this.

vanadium avatar
cn flag
Perhaps add how the user can then use python 3.8
us flag
@vanadium It's already in the answer.
vanadium avatar
cn flag
All right, first sentence!
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.