Option 1: Using pip (recommended)
python -m pip install --user pipx
python -m pipx ensurepathOption 2: Using Scoop
scoop install pipxOption 3: Using Chocolatey
choco install pipxOption 1: Using Homebrew (recommended)
brew install pipx
pipx ensurepathOption 2: Using pip
python3 -m pip install --user pipx
python3 -m pipx ensurepathUbuntu/Debian:
sudo apt update
sudo apt install pipx
pipx ensurepathFedora:
sudo dnf install pipx
pipx ensurepathArch Linux:
sudo pacman -S python-pipx
pipx ensurepathOther distributions (using pip):
python3 -m pip install --user pipx
python3 -m pipx ensurepathAfter installing pipx on any system, restart your terminal or run:
source ~/.bashrc # Linux/macOS
# or
source ~/.zshrc # if using zshOn Windows, restart your command prompt or PowerShell.
Test that pipx is working correctly:
pipx --version
pipx listIf pipx command is not found after installation:
- Make sure you ran
pipx ensurepathand restarted your terminal - On Windows, you may need to add
%USERPROFILE%\.local\binto your PATH manually - On Linux/macOS, ensure
~/.local/binis in your PATH
Python version issues:
- pipx requires Python 3.6 or newer
- If you have multiple Python versions, you might need to specify:
python3.x -m pipx
This should get pipx working reliably across all major platforms for installing your Python applications in isolated environments.