Move "from PyPI" install message to above the relevant code block (#8906)

A minor follow-up to https://github.com/astral-sh/uv/pull/8853

I also included `pipx`, if anyone is opposed I'm happy to drop it.
This commit is contained in:
Zanie Blue 2024-11-08 17:06:41 -06:00 committed by GitHub
parent b5a3d09958
commit ccfc49e7c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,7 +46,7 @@ uv is backed by [Astral](https://astral.sh), the creators of
## Installation
Install uv with our standalone installers, or from [PyPI](https://pypi.org/project/uv/):
Install uv with our standalone installers:
```bash
# On macOS and Linux.
@ -58,11 +58,18 @@ curl -LsSf https://astral.sh/uv/install.sh | sh
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
```
Or, from [PyPI](https://pypi.org/project/uv/):
```bash
# With pip.
pip install uv
```
```bash
# Or pipx.
pipx install uv
```
If installed via the standalone installer, uv can update itself to the latest version:
```bash