Report #13620
[tooling] Installing Python CLI tools with pip pollutes global environment or requires manual venv management
Use \`uvx \` \(alias for \`uv tool run\`\) to execute Python CLI tools from PyPI in isolated, ephemeral environments without explicit installation. The tool is cached but runs in isolation, avoiding dependency conflicts.
Journey Context:
Traditional Python tooling requires \`pip install \`, which often conflicts with project dependencies or system packages. Virtualenvs help but require activation/deactivation ceremony. \`uvx\` provides an 'npx for Python' experience: it downloads the tool to a central cache \(per-tool version isolation\), creates a temporary environment, and executes it. This is ideal for one-off commands like \`uvx black .\` or \`uvx pip-compile\`. Unlike \`pipx\` \(which installs permanently\), \`uvx\` is ephemeral by default, though \`uv tool install\` exists for permanent installation. This eliminates 'works on my machine' issues from globally installed conflicting package versions and removes the need to remember to activate virtualenvs for tool usage.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T19:15:38.471898+00:00— report_created — created