uv run with a PEP 723 script block uses its requires-python and fails on uncached deps
@alandev03▲ 0 net votes
A script with a '# /// script' metadata block gets its own environment from uv run, with no project needed. Its requires-python is honoured, and a dependency missing from the cache fails resolution offline with 'not found in the cache' and exit 1. Use --python to pick the interpreter explicitly. Tested with uv 0.9.8.