Try this command

sudo apt-get install python3-pip

Note: If you have a fresh install, you need to do this first before trying the above command.

sudo apt-get update

Answer from G.Pavan Kumar on Stack Overflow
Discussions

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
How to install pip in Python 3 on Ubuntu 18.04?
Ubuntu 18.04 ships with Python 3, as the default Python installation. Complete the following steps to install pip (pip3) for Python 3: More on odoo.com
🌐 odoo.com
8
0
March 25, 2020
python3 - What is the Right Way to install pip3 on Ubuntu? - Unix & Linux Stack Exchange
An alert while running pip3 sent me to some advice to "Only ever use your system package manager to upgrade the system pip." This was the original alert: WARNING: pip is being invoked by... More on unix.stackexchange.com
🌐 unix.stackexchange.com
February 16, 2021
How to install pip for python3.13t
Hello, I’ve installed v3.13.3t with PEP703 support in an Ubuntu 24.04 system (which already included a v3.12 version). The interpreter seems to be working OK but I simply cannot install pip. If I try using the package manager ($ sudo apt-get install python3-pip), the OS will install pip for ... More on discuss.python.org
🌐 discuss.python.org
11
0
April 20, 2025
People also ask

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
How can we upgrade the pip version in Ubuntu?
To upgrade the `pip` version in Ubuntu, use the following commands: ``` sudo apt-get update sudo apt-get upgrade python3-pip ```
🌐
educative.io
educative.io › answers › installing-pip3-in-ubuntu
Installing pip3 in Ubuntu
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
🌐
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.
Find elsewhere
🌐
PhoenixNAP
phoenixnap.com › home › kb › sysadmin › how to install pip on ubuntu
How to Install Pip on Ubuntu
December 11, 2025 - To install Pip for Python 3 on Ubuntu, take the following steps: ... 2. Install Pip for Python 3 and all the dependencies for building Python modules by running the following command: ... 4. To upgrade pip3 to the latest version, add --upgrade to the command just like for any other PyPI package:
🌐
Reddit
reddit.com › r/learnpython › how to use pip install in ubuntu?
r/learnpython on Reddit: How to use pip install in ubuntu?
March 20, 2026 -

Here's a bit of a noob question...

I'm trying to build a git package using Ubuntu in terminal ( https://github.com/45Drives/cockpit-zfs/ )

One of the steps is to run pip3 install Cython==0.29.35

However, I can't do that because error: externally-managed-environment

And it suggests

create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip

Only, how can I make that work, given that all the config files just assume regular python3?

The indicated steps to build the package are:

dnf install libzfs5-devel python3-devel -y
pip3 install Cython==0.29.35
git clone https://github.com/45Drives/python3-libzfs.git && cd python3-libzfs
./configure --prefix=/usr
make
make install

🌐
ActiveState
activestate.com › resources › quick-reads › how-to-install-and-use-pip3
How to install and use Pip3
Vetted Python packages delivered as native Wheels through pip and your existing artifact repositories. Built from source, continuously remediated, SLA-backed.
🌐
Namehero
namehero.com › blog › install-pip3-on-ubuntu-the-ultimate-guide
Install Pip3 On Ubuntu: The Ultimate Guide
December 6, 2024 - Check out our beginner friendly guide on how to install and setup pip3 on Ubuntu. Simple copy and paste the commands and you're off!
🌐
pip
pip.pypa.io › en › stable › installation
Installation - pip documentation v26.1.2
Depending on how you installed Python, there might be other mechanisms available to you for installing pip such as using Linux package managers.
🌐
Cherry Servers
cherryservers.com › home › blog › cloud computing › how to install pip on ubuntu 22.04 | step-by-step
How to Install PIP on Ubuntu 22.04 | Step-by-Step | Cherry Servers
February 20, 2026 - pip3 install --upgrade package-name pip3 install -U package-name · For example, to update the matplotlib package, run the command: ... If the package is already in its latest version, no change will be affected.
🌐
River
river.me › blog › change-pip-version
Update pip/pip3 to Python 3.8 in Ubuntu – River Writes - A MediaWiki Blog
April 11, 2021 - python3 -m pip install --upgrade --force-reinstall pip · What a helpful warning! So I added /home/river/.local/bin/ to my $PATH (before doing this, I echo $PATH’d just in case I messed up): ... And I also put it into ~/.profile and ~/.config/fish/config.fish per this Ask Ubuntu post.
🌐
Server Fault
serverfault.com › questions › 1102506 › install-pip3-on-new-ubuntu-server-22-04-install-raspberry-pi
python - Install pip3 on new Ubuntu Server 22.04 install (Raspberry Pi) - Server Fault
June 5, 2022 - I checked the Packages.gz in ... listed in there (in line 1068360), so you should be able to install using apt-get install python3-pip (after doing the usual apt-get update)....
🌐
CyberPanel
cyberpanel.net › blog › install-pip-in-ubuntu
Install Pip in Ubuntu: Your Ultimate 2025 Setup Guide!
April 28, 2025 - In some cases, the proposed solution will not be appropriate for one’s needs. You should learn how to install Pip installer in Ubuntu environment. We are going to use get-pip.py · curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python3 get-pip.py ... Always replace pip with pip3 when using Python 3.
🌐
CloudCone
cloudcone.com › home › how to install pip on ubuntu 20.04
How to install Pip on Ubuntu 20.04 - Tutorials and How To - CloudCone
September 30, 2020 - Python2 can be installed thanks ... can install pip for both Python3 and Python2. Pip3 can be installed on Ubuntu using the APT package manager....
🌐
Python.org
discuss.python.org › python help
How to install pip for python3.13t - Python Help - Discussions on Python.org
April 20, 2025 - Hello, I’ve installed v3.13.3t ... OK but I simply cannot install pip. If I try using the package manager ($ sudo apt-get install python3-pip), the OS will install pip for ......
🌐
Red Hat
redhat.com › en › blog › install-python-pip-linux
Install Python pip on Linux
November 21, 2025 - The most popular Python package manager, pip, used to be included in a typical Python install, but lately, it's been excluded. Pip is a useful tool for runni...
🌐
Cherry Servers
cherryservers.com › home › blog › linux › how to install pip on ubuntu 24.04: step-by-step guide
How to Install PIP on Ubuntu 24.04: Step-by-Step Guide | Cherry Servers
November 7, 2025 - Also read: How to Install Anaconda on Ubuntu 22.04 · With the virtual environment activated, use the following syntax to install packages: pip3 install package_name · To install the beautifulsoup4 package, run the command: pip3 install ...