1

I have the following version of Python, in my Ubuntu 18.04 LTS.

python --version
Python 2.7.17
python3 --version
Python 3.6.9

How to upgrade it to the latest version 3.8.2 I have already run the commands:

sudo apt-get update && sudo apt-get upgrade
sudo apt-get install python3.8.2

However, that did not make any changes.

Pablo Bianchi
  • 14,308
  • 4
  • 74
  • 117
Parichay Pari
  • 11
  • 1
  • 2
  • 6
    Does this answer your question? [How do I install the latest Python 2.7.X or 3.X on Ubuntu?](https://askubuntu.com/questions/101591/how-do-i-install-the-latest-python-2-7-x-or-3-x-on-ubuntu) – muru Mar 30 '20 at 09:15

1 Answers1

0

It looks like binary packages in Ubuntu for python are up to 3.6.9. I think you would need to download required version of Python from Python relesases and then follow documentation.

miro5lav
  • 62
  • 1
  • 7
  • What are the steps for that? – Parichay Pari Mar 30 '20 at 07:31
  • Parichay Pari, please note that no Python can be "upgraded", as the system versions are used by the admin tools, e.g. `apt`. .... I.e. a change will make the OS invalid. – Knud Larsen Mar 30 '20 at 13:21
  • In tar.gz folder you need to see README file and look at installing multiple versions of Python, e.g.: `./configure` `make` `make test` `sudo make altinstall --prefix ` – miro5lav Mar 31 '20 at 07:16