Skip to content

pipx: Install Python CLI Tools in Isolation

pipx is a command line tool to install and run Python command line applications in isolated environments. Each installed application gets its own virtual environment, preventing dependency conflicts between tools while making their executables available on your PATH.

uv provides equivalent functionality through uv tool install and uvx. If you already use uv, you may not need pipx. See the uv tool management documentation for details.

Usage

# Install a tool
pipx install ruff

# Run a tool without installing it
pipx run cowsay hello

# Upgrade an installed tool
pipx upgrade ruff

# List installed tools
pipx list

For example, to install the csvkit suite of command line tools, run pipx install csvkit. This installs csvkit in an isolated environment and makes its tools available on your PATH.

pipx is distinct from pip; it uses pip internally to install packages into isolated environments rather than into the global Python environment.

Learn More

Get Python tooling updates

Subscribe to the newsletter
Last updated on

Please submit corrections and feedback...