pipx: Install Python CLI Tools in Isolation
by Tim Hopper
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 listFor 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
Also Mentioned In
- uv: A Complete Guide to Python's Fastest Package Manager
- Production Experiences with uv
- How do uv and Poetry compare?
- How to install uv
- How to install uv on Linux
- How to install uv on macOS
- How to install uv on Windows
- How to upgrade uv
- How to write self-contained Python scripts using PEP 723 inline metadata
- pipenv: Python Dependency Manager
- Pixi: Multi-Language Package and Workflow Manager
- uv: Python Package and Project Manager
- What is a .python-version file?
- Which Python package manager should I use?
- Why You Should Try uv if You Use Python
Get Python tooling updates
Subscribe to the newsletter
Last updated on