I am tried by this command
JavaScript
x
2
1
sudo pip3 install --upgrade python
2
but still, it did not work.
Advertisement
Answer
pip
is not capable of upgrading python – it is for python packages. Use,
JavaScript
1
4
1
sudo add-apt-repository ppa:deadsnakes/ppa
2
sudo apt-get update
3
sudo apt-get install python3.8
4
On Ubuntu. You may also want -dev
and -venv
:
JavaScript
1
2
1
sudo apt-get install python3.8-venv python3.8-dev
2
To ensure you have 3.8 pip
, virtualenv
, and such.