Add some references to more details in the Python install guide (#4962)

This commit is contained in:
Zanie Blue 2024-07-10 11:37:53 -04:00 committed by GitHub
parent a4044be95b
commit 067b3ee666
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -36,6 +36,10 @@ To view available and installed Python versions:
$ uv python list
```
See the [`python list`](../python-versions.html#viewing-available-python-versions) documentation for more details.
<!--TODO(zanieb): The above should probably link to a CLI reference and that content should be moved out of that file -->
## Automatic Python downloads
Note that Python does not need to be explicitly installed to use uv. By default, uv will automatically download Python versions when they are required. For example, the following would download Python 3.12 if it was not installed:
@ -57,3 +61,5 @@ Note that when an automatic Python installation occurs, the `python` command wil
uv will also use an existing Python installation if already present on the system. There's no configuration necessary for this behavior, uv will use the system Python if it satisfies the requirements of the command invocation.
To force uv to use the system Python, provide the `--python-preference only-system` option.
See the [Python version preference](../python-versions.html#adjusting-python-version-preferences) documentation for more details.