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
  • 15,657

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 <INSTALL_DIR> – miro5lav Mar 31 '20 at 07:16