I am tried by this command
sudo pip3 install --upgrade python
but still, it did not work.
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. 
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With