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.