Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
15
rated 0 times [  15] [ 0]  / answers: 1 / hits: 30459  / 3 Years ago, thu, november 11, 2021, 3:29:49

I updated my system using:


sudo apt-get update && sudo apt-get upgrade

And then ran the following to install python3.9:


sudo apt-get install python3.9

Which yields output:


Reading package lists... Done
Building dependency tree
Reading state information... Done
python3.9 is already the newest version (3.9.5-3~20.04.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

However, when I run python3 -V it still tells me I am on 3.8.5. How can I fix this?


More From » python

 Answers
6

You can run python3.9 with the command


python3.9

(instead of the command python or python3)


It is not a good idea to change the default version of python3 to python3.9, as that may break your Ubuntu installation. Instead, manually call it with python3.9.


[#1416] Friday, November 12, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
poefor

Total Points: 379
Total Questions: 95
Total Answers: 115

Location: Serbia
Member since Tue, Jul 26, 2022
2 Years ago
poefor questions
;