Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 212
Shiva_Adasule Avatar asked Oct 28 '19 13:10

Shiva_Adasule


1 Answers

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.

like image 189
modesitt Avatar answered Nov 15 '22 19:11

modesitt