Ubuntu 20.04.1 LTS Desktop
My default Python version was 2.7.18 for some reason. I would like to update it to Python3 so I can install python3-pip onto my desktop.
After running:
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.8 20I get:
update-alternatives: using /usr/bin/python3.8 to provide /usr/bin/python (python) in auto modeMy python version is: Python 3.8.5
The issue is still that when I run:
sudo apt install python3-pip
E: Package 'python3-pip' has no installation candidateDoes anyone have any recommendations?
In my bin for python i have: /usr/bin/python /usr/bin/python3 /usr/bin/python2
21 Answer
You may have to enable the universe repository first.
sudo add-apt-repository universeThen run the following command to synchronize your package database.
sudo apt updateFinaly install pip3 with
sudo apt install python3-pip 1