Install python3.8 and setup up correct version on python command using update-alternatives (as done in the question). Now if you write pip in the Terminal, you'll get that nothing is installed there: pip -versionĬommand 'pip' not found, but can be installed with: This is how I installed it (so it can be called directly):įirstly, make sure that command pip is available and it isn't being used by pip for Python 2.7 sudo apt remove python-pip While we can use pip directly as a Python module (the recommended way): python -m pip -version What can I do to install pip for Python 3.8 on an Ubuntu 18.04? Try installing python-pip, and it will install pip for Python 2.7.Īlso there's no such package as python3.8-pip, so I can't install it like: sudo apt install python3.8-pipĮ: Unable to locate package python3.8-pipĮ: Couldn't find any package by glob 'python3.8-pip'Į: Couldn't find any package by regex 'python3.8-pip' If I try to install python3-pip, it installs pip for Python 3.6 since python3 still points to python3.6.9, and I intend to keep it that way. The problem is, I still can't install pip for Python 3.8. Now, I get python 3.8 when I run python -version: Sudo update-alternatives -install /usr/bin/python python /usr/bin/python3.8 10 So far, I've been able to install python3.8 successfully using the PPA - ppa:deadsnakes/ppa: sudo add-apt-repository ppa:deadsnakes/ppaĬhanged python command from python2 to python3.8 using update-alternatives: update-alternatives -remove python /usr/bin/python2 change default python3 version from 3.6 to 3.8. 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. But those questions do not concern keeping Ubuntu's defaults specifically. I know this has been asked way too many times. I'm trying to install pip for Python 3.8 on an Ubuntu 18.04 LTS.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |