Skip to content

Install Pipx

pipx.pypa.io • November 27, 2026

Installing pipx needs Python 3.11 or newer, and so does any interpreter you pass with --python . Without Python 3.11, see the Python 3 installation guide .

You also need pip for python3 . The steps vary by system; see pip’s installation instructions . On Linux, install through a Linux package manager .

Ubuntu 23.04 or newer:

Other distributions, using pip :

Distributions that adopt PEP 668 (Ubuntu 23.04+, Debian 12+, Fedora 38+) mark the system Python as externally managed, so pip install --user fails with externally-managed-environment . Use the distribution package ( apt install pipx , dnf install pipx ). If none exists, install pipx into its own virtual environment:

Install via pip (needs pip 19.0 or newer; replace py with python3 if you installed Python from the Microsoft Store):

This often ends with a warning that pipx.exe is installed in a directory that is not on PATH . Go to that directory and run the executable directly to fix it (run this even without the warning):

This adds both that directory and %USERPROFILE%\.local\bin to your path. Restart the terminal, then confirm pipx runs.

Optional PATH commands ¶

Add the global app directory to the system PATH (pipx 1.6.0+):

Prepend the pipx bin directory instead of appending it, so pipx apps win over system apps of the same name (pipx 1.7.0+):

For where these directories live and how to change them, see Configure paths .

Some distributions ship older pipx versions (Ubuntu 24.04 ships 1.4.3). If --global or --prepend fails with “unrecognized arguments”, upgrade pipx first.

sudo pipx reports “command not found” when pipx lives in your user directory. See sudo pipx not found for the fix.

Run pipx without installing ¶

Download the zipapp from GitHub releases and invoke it with a Python 3.11+ interpreter:

Let pipx manage its own installation so pipx upgrade pipx keeps it current and you avoid distro packages that ship older versions. Bootstrap it through a throwaway virtual environment in a fresh private directory:

mktemp -d creates a directory with a random name that only you can enter. Avoid a fixed path such as /tmp/bootstrap : on a shared host another user can create it first and plant code that every Python process started from the bootstrap runs, including the sudo step below.

After this, pipx upgrade pipx upgrades pipx like any other managed app. On Windows, pipx cannot delete its own running executable, so it moves locked files to a trash directory and cleans them up on the run.

To one self-managed pipx between all users on Unix, run the bootstrap’s install with sudo and --global instead, before removing the bootstrap directory. The installed pipx then works on each user’s own environments, and on the global ones only when you pass --global :

Install from source control ¶

pipx accepts any source pip supports, including git repositories. Using black as an example:

Use a direct URL requirement to install extras:

To test a package from an open pull request, find the fork owner and branch on the PR page, then build the git URL. For PR #794 from user contributor on branch fix-something :

If the branch is already merged, use the merge commit hash instead:

Open a new terminal after pipx ensurepath so the updated PATH takes effect, then run pipx list to confirm the environment is reachable.

Extracted Entities

Companies (3)

Platforms (4)

Tools (1)