mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
docs: use python
to highlight requirements and use more content tabs (#6549)
## Summary It appears that using `python` for code blocks containing requirements works quite well.   Also using more content tabs for cases where we need to differentiate macOS/Linux from Windows. ## Test Plan Local run of the documentation.
This commit is contained in:
parent
6a988aca55
commit
fd17f6d902
10 changed files with 69 additions and 48 deletions
|
@ -8,13 +8,17 @@ Install uv with our standalone installers or your package manager of choice.
|
|||
|
||||
uv provides a standalone installer to download and install uv:
|
||||
|
||||
```console title="macOS and Linux"
|
||||
$ curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
```
|
||||
=== "macOS and Linux"
|
||||
|
||||
```console title="Windows"
|
||||
$ powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
|
||||
```
|
||||
```console
|
||||
$ curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
```
|
||||
|
||||
=== "Windows"
|
||||
|
||||
```console
|
||||
$ powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
|
||||
```
|
||||
|
||||
By default, uv is installed to `~/.cargo/bin`.
|
||||
|
||||
|
@ -22,25 +26,33 @@ By default, uv is installed to `~/.cargo/bin`.
|
|||
|
||||
The installation script may be inspected before use:
|
||||
|
||||
```console title="macOS and Linux"
|
||||
$ curl -LsSf https://astral.sh/uv/install.sh | less
|
||||
```
|
||||
=== "macOS and Linux"
|
||||
|
||||
```console title="Windows"
|
||||
$ powershell -c "irm https://astral.sh/uv/install.ps1 | more"
|
||||
```
|
||||
```console
|
||||
$ curl -LsSf https://astral.sh/uv/install.sh | less
|
||||
```
|
||||
|
||||
=== "Windows"
|
||||
|
||||
```console
|
||||
$ powershell -c "irm https://astral.sh/uv/install.ps1 | more"
|
||||
```
|
||||
|
||||
Alternatively, the installer or binaries can be downloaded directly from [GitHub](#github-releases).
|
||||
|
||||
Request a specific version by including it in the URL:
|
||||
|
||||
```console title="macOS and Linux"
|
||||
$ curl -LsSf https://astral.sh/uv/0.3.4/install.sh | sh
|
||||
```
|
||||
=== "macOS and Linux"
|
||||
|
||||
```console title="Windows"
|
||||
$ powershell -c "irm https://astral.sh/uv/0.3.4/install.ps1 | iex"
|
||||
```
|
||||
```console
|
||||
$ curl -LsSf https://astral.sh/uv/0.3.4/install.sh | sh
|
||||
```
|
||||
|
||||
=== "Windows"
|
||||
|
||||
```console
|
||||
$ powershell -c "irm https://astral.sh/uv/0.3.4/install.ps1 | iex"
|
||||
```
|
||||
|
||||
### PyPI
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue