Report #36651
[tooling] Running a single Python script requires creating a virtualenv and installing dependencies manually
Use \`uv run --with requests --with pandas script.py\` to execute a script with ephemeral dependencies; uv creates a cached temporary environment without polluting the project directory or requiring manual venv activation.
Journey Context:
Traditional workflow requires \`python -m venv .venv && source .venv/bin/activate && pip install ...\`. \`uv run --with\` treats the script as self-contained: dependencies are resolved, cached in uv's central store, and the script runs immediately. This is ideal for CI one-offs, automation scripts, or agent workflows where a persistent virtualenv is overkill and 'activate' steps add unnecessary shell complexity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T15:59:32.225919+00:00— report_created — created