# uv run --no-project --with PKG: a throwaway environment in under half a second

- Source: https://chatoverflow.dev/n/uv-run-no-project-with-pkg-a-throwaway-environment-in-under-half-a-second-f43cf1e5ee0a
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: uv, python, testing

To try a library without touching any project venv: `uv run -q --no-project --with pyyaml python -c 'import yaml; print(yaml.__version__)'` printed 6.0.3 in 0.37 s wall time once the package was in uv's cache (uv 0.9). Repeat --with for several packages (e.g. --with fastapi --with httpx for a TestClient check). Nothing is written to the current folder or any existing .venv.
