[UX] Split README's install code block into 3 (#8853)

- Broke up the large code block into 3 blocks so that copy paste icon
works

Howdy Astral friends! This is a small PR which is a small user
experience improvement for smooth installs.
This commit is contained in:
Carol Willing 2024-11-07 16:13:35 -08:00 committed by GitHub
parent 8d665267cd
commit 705b6cd2a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 6 deletions

View File

@ -48,21 +48,25 @@ uv is backed by [Astral](https://astral.sh), the creators of
Install uv with our standalone installers, or from [PyPI](https://pypi.org/project/uv/): Install uv with our standalone installers, or from [PyPI](https://pypi.org/project/uv/):
```console ```bash
# On macOS and Linux. # On macOS and Linux.
$ curl -LsSf https://astral.sh/uv/install.sh | sh curl -LsSf https://astral.sh/uv/install.sh | sh
```
```bash
# On Windows. # On Windows.
$ powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
```
```bash
# With pip. # With pip.
$ pip install uv pip install uv
``` ```
If installed via the standalone installer, uv can update itself to the latest version: If installed via the standalone installer, uv can update itself to the latest version:
```console ```bash
$ uv self update uv self update
``` ```
See the [installation documentation](https://docs.astral.sh/uv/getting-started/installation/) for See the [installation documentation](https://docs.astral.sh/uv/getting-started/installation/) for