uv/docs
Mikayla Thompson 88811553e4
`pip install --target` (and `sync`) install python if necessary (#16694)
## Summary

As described in https://github.com/astral-sh/uv/issues/12229, `pip
install` with `--target` or `--prefix` seem like they should install the
necessary python version if it doesn't exist, but they currently don't.

Most minimal reproduction is something like:
```
> uv python uninstall 3.13
...
> uv pip install anyio --target target-dir --python 3.13
error: No interpreter found for Python 3.13 in virtual environments, managed installations, or search path
```

This also fails without `--target`, but a venv is expected in that case,
so the with `--target`/`--prefix` is the only version that needs to be
fixed. The same mechanism occurs for `uv pip sync` as well.

## Test Plan

Added tests for install and sync that failed before fix and now pass.

---------

Signed-off-by: Mikayla Thompson <mrt@mikayla.codes>
2025-11-12 15:42:52 -07:00
..
.overrides Add ``last updated`` for document (#11164) 2025-02-03 22:28:47 -05:00
assets Add GitHub Actions to PyPI trusted publishing example (#15753) 2025-09-17 19:25:17 +02:00
concepts Bump version to 0.9.9 (#16708) 2025-11-12 18:14:44 +00:00
getting-started Bump version to 0.9.9 (#16708) 2025-11-12 18:14:44 +00:00
guides Bump version to 0.9.9 (#16708) 2025-11-12 18:14:44 +00:00
js Split the "Authentication" page into sections (#15575) 2025-08-28 15:45:31 -05:00
pip Note `uv pip list` name normalization in docs (#13210) 2025-11-02 20:39:30 +00:00
reference `pip install --target` (and `sync`) install python if necessary (#16694) 2025-11-12 15:42:52 -07:00
stylesheets document uv version for environment variables (#15196) 2025-10-08 12:31:12 -05:00
.gitignore Add structured documentation (#4426) 2024-06-26 11:28:42 -05:00
index.md Fix PowerShell code blocks (#13511) 2025-05-17 21:06:48 -05:00
requirements-insiders.in Reference the root requirements from the insiders requirements file (#5105) 2024-07-16 09:51:16 -05:00
requirements-insiders.txt Add an `llms.txt` to uv (#13929) 2025-06-10 07:46:49 -04:00
requirements.in Add an `llms.txt` to uv (#13929) 2025-06-10 07:46:49 -04:00
requirements.txt Add an `llms.txt` to uv (#13929) 2025-06-10 07:46:49 -04:00