diff --git a/crates/uv-cli/src/lib.rs b/crates/uv-cli/src/lib.rs index 7609f1154..ee5328f01 100644 --- a/crates/uv-cli/src/lib.rs +++ b/crates/uv-cli/src/lib.rs @@ -4354,8 +4354,7 @@ pub struct PythonInstallArgs { /// 3.13+freethreaded with `--default` will include in `python3t` and `pythont`, not `python3` /// and `python`. /// - /// If multiple Python versions are requested during the installation, the first request will be - /// the default. + /// If multiple Python versions are requested, uv will exit with an error. #[arg(long)] pub default: bool, } diff --git a/crates/uv/tests/it/help.rs b/crates/uv/tests/it/help.rs index 912e8abd9..31e3e02d4 100644 --- a/crates/uv/tests/it/help.rs +++ b/crates/uv/tests/it/help.rs @@ -540,8 +540,7 @@ fn help_subsubcommand() { 3.13+freethreaded with `--default` will include in `python3t` and `pythont`, not `python3` and `python`. - If multiple Python versions are requested during the installation, the first request will - be the default. + If multiple Python versions are requested, uv will exit with an error. Cache options: -n, --no-cache diff --git a/docs/reference/cli.md b/docs/reference/cli.md index 9acee6e93..12a466755 100644 --- a/docs/reference/cli.md +++ b/docs/reference/cli.md @@ -4709,7 +4709,7 @@ uv python install [OPTIONS] [TARGETS]...

Alternative Python variants will still include their tag. For example, installing 3.13+freethreaded with --default will include in python3t and pythont, not python3 and python.

-

If multiple Python versions are requested during the installation, the first request will be the default.

+

If multiple Python versions are requested, uv will exit with an error.

--directory directory

Change to the given directory prior to running the command.