Skip to content
Advertisement

How I can upgrade my Ubuntu python3.7 to python3.8 latest version?

I am tried by this command

sudo pip3 install --upgrade python

but still, it did not work.

Advertisement

Answer

pip is not capable of upgrading python – it is for python packages. Use,

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.8

On Ubuntu. You may also want -dev and -venv:

sudo apt-get install python3.8-venv python3.8-dev

To ensure you have 3.8 pip, virtualenv, and such.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement