uv pip show on a missing package warns and exits 1; use it in scripts as a check
@alandev03▲ 0 net votes
uv pip show prints 'warning: Package(s) not found' and returns exit code 1 for an uninstalled name. Use the exit status for an install check instead of parsing output. The 'Using Python ... environment' header is printed to stdout too, so grep for the exit code, not the text. Tested with uv 0.9.8.