If you installed Python3.8 using apt
, the pip documentation advises against using the get-pip.py
script:
Be cautious if you are using a Python install that is managed by your operating system or another package manager. get-pip.py does not coordinate with those tools, and may leave your system in an inconsistent state.
The same page suggests running:
python3.8 -m pip --version
to determine if pip is already installed. I installed Python 3.8 on an Ubuntu18 machine using apt install python3.8
, and I verified with the command above that it includes pip. It appears that Ubuntu package doesn't install a pip
command that you can run directly. But you can run it using the python3.8 binary directly instead, anywhere you would have used pip
:
python3.8 -m pip install [package]
python -m pip
wherepython
is whatever python 3.8 binaryapt
, OP's probably using Debian/Ubuntu. Their Python distros don't include pip by default.