I'm trying to install pip for Python 3.8 on an Ubuntu 18.04 LTS. Previous questions do not concern keeping Ubuntu's defaults specifically. And the answers on those questions either don't work or go on to suggest something so drastic that it would break the system - e.g. change default python3 version from 3.6 to 3.8, which you shouldn't.
So far, I've been able to install python3.8 successfully using ppa:deadsnakes/ppa:
sudo add-apt-repository ppa:deadsnakes/ppasudo apt updatesudo apt install python3.8I changed the python command from Python 2 to Python 3.8 using update-alternatives:
update-alternatives --remove python /usr/bin/python2sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.8 10Now when I run python --version I get:
Python 3.8.5The problem is, I still can't install pip for Python 3.8.
If I try to install
python3-pip, it installspipfor Python 3.6, sincepython3still points topython3.6.9, and I intend to keep it that way.Try installing
python-pip, and it will installpipfor Python 2.7.There's no such package as
python3.8-pip, so I can't install it like:sudo apt install python3.8-pipOutput:
E: Unable to locate package python3.8-pip <br>E: Couldn't find any package by glob 'python3.8-pip'<br>E: Couldn't find any package by regex 'python3.8-pip'
What can I do to install pip for Python 3.8 on an Ubuntu 18.04?