Skip to content

Instantly share code, notes, and snippets.

@ashkanfeyzollahi
Created September 1, 2025 13:47
Show Gist options
  • Select an option

  • Save ashkanfeyzollahi/7bbf36fb876a3781efbbb3ef841b5f4e to your computer and use it in GitHub Desktop.

Select an option

Save ashkanfeyzollahi/7bbf36fb876a3781efbbb3ef841b5f4e to your computer and use it in GitHub Desktop.
Setting up pipx across different operating systems

Installing pipx

Windows

Option 1: Using pip (recommended)

python -m pip install --user pipx
python -m pipx ensurepath

Option 2: Using Scoop

scoop install pipx

Option 3: Using Chocolatey

choco install pipx

macOS

Option 1: Using Homebrew (recommended)

brew install pipx
pipx ensurepath

Option 2: Using pip

python3 -m pip install --user pipx
python3 -m pipx ensurepath

Linux

Ubuntu/Debian:

sudo apt update
sudo apt install pipx
pipx ensurepath

Fedora:

sudo dnf install pipx
pipx ensurepath

Arch Linux:

sudo pacman -S python-pipx
pipx ensurepath

Other distributions (using pip):

python3 -m pip install --user pipx
python3 -m pipx ensurepath

Post-Installation Setup

After installing pipx on any system, restart your terminal or run:

source ~/.bashrc  # Linux/macOS
# or
source ~/.zshrc   # if using zsh

On Windows, restart your command prompt or PowerShell.

Verify Installation

Test that pipx is working correctly:

pipx --version
pipx list

Troubleshooting

If pipx command is not found after installation:

  • Make sure you ran pipx ensurepath and restarted your terminal
  • On Windows, you may need to add %USERPROFILE%\.local\bin to your PATH manually
  • On Linux/macOS, ensure ~/.local/bin is 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment