It seems python3-pip is not installed correctly on my system so I did

sudo apt install --reinstall python3-pip

Now I can install programs with pip3.

Answer from Jedi on askubuntu.com
🌐
Educative
educative.io › answers › installing-pip3-in-ubuntu
Installing pip3 in Ubuntu
Use the apt-get -y install python3-pip command to install pip3, if Python 3 is already installed on your Ubuntu system.
Discussions

How to install pip with Python 3? - Stack Overflow
Then use pip-3.2 install (replace 3.2 with your version) to install the packages - also see stackoverflow.com/questions/10763440/… 2013-01-30T15:19:18.723Z+00:00 ... Unable to locate package python3-pip. Has it been renamed? 2013-04-03T01:45:19.32Z+00:00 ... Are you using Ubuntu 12.04 LTS? More on stackoverflow.com
🌐 stackoverflow.com
python - How to install python3-pip on ubuntu 20.04 - Stack Overflow
I ended up just installing another version of Ubuntu instead. Now it works just fine. 2020-06-11T16:24:51.723Z+00:00 ... That fixed it for me. I had already run update, but I guess I needed to run it again. 2020-10-18T13:40:49.667Z+00:00 ... Boom! It was the sudo apt-get update that I was missing! Thank you bro! 2023-08-03T03:50:27.373Z+00:00 ... Save this answer. ... Show activity on this post. ... Copysudo apt-get install python3-setuptools sudo python3 -m easy_install install pip ... More on stackoverflow.com
🌐 stackoverflow.com
python - Proper way to install pip on Ubuntu - Stack Overflow
I'm trying to install the latest version of pip (currently 8.1.2) on the official ubuntu/trusty64 Vagrant box. The box comes with Python 2.7.6 and 3.4.3 pre-installed with apt-get. I read the pip More on stackoverflow.com
🌐 stackoverflow.com
How to use pip install in ubuntu?
that “externally-managed-environment” error is ubuntu being annoying about system python easiest fix is just use a venv: python3 -m venv venv source venv/bin/activate then run pip install inside that avoids messing with system packages completely More on reddit.com
🌐 r/learnpython
22
9
March 20, 2026
People also ask

How do we install pip3 in Python?
We can install `pip3` in the following way: 1. Download `get-pip.py`. 2. Run `python get-pip.py` in the terminal.
🌐
educative.io
educative.io › answers › installing-pip3-in-ubuntu
Installing pip3 in Ubuntu
How can we install specific version of pip3 in Ubuntu?
We can install a specific version of `pip3` in Ubuntu using the following code: ``` sudo apt-get install python3-pip=version_number ```
🌐
educative.io
educative.io › answers › installing-pip3-in-ubuntu
Installing pip3 in Ubuntu
How do we install sqlite3 with pip3 in Ubuntu?
We can install `sqlite3` with `pip3` with this command: `pip install sqlite3`.
🌐
educative.io
educative.io › answers › installing-pip3-in-ubuntu
Installing pip3 in Ubuntu
🌐
BitLaunch
bitlaunch.io › blog › how-to-install-python-on-ubuntu
7 Ways to Install and Manage Python and Python3 on Ubuntu
March 5, 2026 - Learn the best ways to install Python on Ubuntu, including how to install pip, pyenv, and Anaconda on Ubuntu to safely manage your Python 3 versions.
🌐
GitHub
gist.github.com › hadisfr › 5c055c2d850cabeecaf51d1b599bd363
a short guide to install python3 and pip3 on Ubuntu Server · GitHub
You may need to add an external PPA (such as deadsnakes) to install newer python versions on older Ubuntu ditributions. [+] sudo add-apt-repository ppa:deadsnakes/ppa sudo apt-get update sudo apt-get install python3.7 python3.7-dev · Exception: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 215, in main status = self.run(options, args) File "/usr/lib/python3/dist-packages/pip/commands/list.py", line 157, in run packages = self.get_outdated(packages, options) File "/usr/lib/python3/dist-packages/pip/commands/list.py", line 168, in get_outdated dist for dist in self.iter_packages_latest_infos(packages, options) File "/usr/lib/python3/dist-packages/pip/commands/list.py", line 169, in <listcomp> if dist.latest_version > dist.parsed_version TypeError: '>' not supported between instances of 'Version' and 'SetuptoolsVersion'
Top answer
1 of 16
892

edit: Manual installation and use of setuptools is not the standard process anymore.

If you're running Python 2.7.9+ or Python 3.4+

Congrats, you should already have pip installed. If you do not, read onward.

If you're running a Unix-like System

You can usually install the package for pip through your package manager if your version of Python is older than 2.7.9 or 3.4, or if your system did not include it for whatever reason.

Instructions for some of the more common distros follow.

Installing on Debian (Wheezy and newer) and Ubuntu (Trusty Tahr and newer) for Python 2.x

Run the following command from a terminal:

sudo apt-get install python-pip 

Installing on Debian (Wheezy and newer) and Ubuntu (Trusty Tahr and newer) for Python 3.x

Run the following command from a terminal:

sudo apt-get install python3-pip
Note:

On a fresh Debian/Ubuntu install, the package may not be found until you do:

sudo apt-get update

Installing pip on CentOS 7 for Python 2.x

On CentOS 7, you have to install setup tools first, and then use that to install pip, as there is no direct package for it.

sudo yum install python-setuptools
sudo easy_install pip

Installing pip on CentOS 7 for Python 3.x

Assuming you installed Python 3.4 from EPEL, you can install Python 3's setup tools and use it to install pip.

# First command requires you to have enabled EPEL for CentOS7
sudo yum install python34-setuptools
sudo easy_install pip

If your Unix/Linux distro doesn't have it in package repos

Install using the manual way detailed below.

The manual way

If you want to do it the manual way, the now-recommended method is to install using the get-pip.py script from pip's installation instructions.

Install pip

To install pip, securely download get-pip.py

Then run the following (which may require administrator access):

python get-pip.py 

If setuptools is not already installed, get-pip.py will install setuptools for you.

2 of 16
237

I was able to install pip for python 3 on Ubuntu just by running sudo apt-get install python3-pip.

🌐
Namehero
namehero.com › blog › install-pip3-on-ubuntu-the-ultimate-guide
Install Pip3 On Ubuntu: The Ultimate Guide
December 6, 2024 - To begin the install of pip3 and any dependencies required, we will once again use the ‘apt-get’ utility much like in the previous step where we updated our system packages to prepare Ubuntu. Using the following ‘apt install python3 pip’ ...
Find elsewhere
🌐
The Hitchhiker's Guide to Python
docs.python-guide.org › starting › install3 › linux
Installing Python 3 on Linux — The Hitchhiker's Guide to Python
To see if pip is installed, open a command prompt and run ... To install pip, follow the official pip installation guide - this will automatically install the latest version of setuptools.
🌐
Webhi
webhi.com › home › how to install pip3 in ubuntu
How to install Pip3 in Ubuntu - Tutorial & Documentation
April 5, 2023 - In this tutorial, you have learned how to install pip on Ubuntu machines running Python 3. We have also covered how to use pip to install Python packages, upgrade them to the latest version, and remove them from your system.
🌐
Linuxize
linuxize.com › home › python › how to install python pip on ubuntu
How to Install Python Pip on Ubuntu | Linuxize
1 week ago - Use pip to install a module globally only if there is no deb package for that module. Avoid running pip with sudo outside of a virtual environment. If you need a per-user install without a virtual environment, add the --user flag.
🌐
Automate the Boring Stuff
automatetheboringstuff.com › 1e › appendixa
Automatetheboringstuff
While pip comes automatically installed with Python 3.4 on Windows and OS X, you must install it separately on Linux. To install pip3 on Ubuntu or Debian Linux, open a new Terminal window and enter sudo apt-get install python3-pip. To install pip3 on Fedora Linux, enter sudo yum install python3-pip ...
🌐
PhoenixNAP
phoenixnap.com › home › kb › sysadmin › how to install pip on ubuntu
How to Install Pip on Ubuntu
December 11, 2025 - This guide explained how to install Pip on Ubuntu for Python 3.
🌐
PhoenixNAP
phoenixnap.com › home › kb › sysadmin › how to install python 3 on ubuntu
How to Install Python 3 on Ubuntu | phoenixNAP KB
February 5, 2025 - Follow our step-by-step installation guide and install Python 3 on Ubuntu using APT, PPA, or from the source code.
🌐
Linuxize
linuxize.com › home › python › how to install python pip on ubuntu 20.04
How to Install Python Pip on Ubuntu 20.04 | Linuxize
April 27, 2020 - Pip is a tool for installing Python packages. This guide explains how to install pip for Python 3 and Python 2 on Ubuntu 20.04.
🌐
LinuxShout
linux.how2shout.com › home › how to install python 3.x and pip 3 on ubuntu 20.04 lts
How to install Python 3.x and PIP 3 on Ubuntu 20.04 LTS - LinuxShout
May 25, 2022 - Learn how to instal latest version of Python3.x on Ubuntu 20.04 LTS and change the default version along with PIP3 installtion and its usage to install various Pythons Packages.
🌐
Reddit
reddit.com › r/learnpython › installing python3 and pip on minimal ubuntu
r/learnpython on Reddit: Installing python3 and pip on minimal Ubuntu
February 6, 2020 - Python3 comes installed with minimal Ubuntu and you may find the version with python3 --version · you may install pip with sudo apt install -y python3-pip
🌐
Serverspace
serverspace.io › support › help › how-to-install-python-3-on-ubuntu-24-04
How to Install Python 3 on Ubuntu 24.04 ~ Serverspace.io
March 31, 2026 - python3 -m venv myenv source myenv/bin/activate pip install requests deactivate ... Conclusion Python 3 can be installed on Ubuntu 24.04 in multiple ways: via apt for simplicity, deadsnakes PPA for specific versions, pyenv for version management, ...