pipx

Install and run Python CLI tools in isolated environments without polluting your global site-packages

Visit pipx →
Tools & LibrariesNew
TopicsCLIIsolationPackaging

pipx solves a specific, common annoyance: installing a command-line tool like black, httpie, or poetry globally with plain pip install dumps it (and its dependencies) into your system or global Python environment, where it can silently conflict with other tools or projects.

pipx instead creates a dedicated virtual environment per tool, then exposes just the executable on your PATH — so each CLI tool is fully isolated from every other one, while still feeling like a normal globally installed command. It’s become close to the default recommended way to install Python-based CLI tools.