mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 10:58:28 +00:00
Add wget instructions for systems without curl (#8630)
## Summary Adds wget instructions for linux installations that don't come with `curl`. ## Test Plan This was tested on Ubuntu 20.04, Ubuntu 22.04, Ubuntu 24.04, and Debian 11. --------- Co-authored-by: Zanie Blue <contact@zanie.dev>
This commit is contained in:
parent
61569d0d9d
commit
d2b9036eda
1 changed files with 15 additions and 5 deletions
|
@ -10,19 +10,19 @@ uv provides a standalone installer to download and install uv:
|
|||
|
||||
=== "macOS and Linux"
|
||||
|
||||
Use `curl` to download the script and execute it with `sh`:
|
||||
|
||||
```console
|
||||
$ curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
```
|
||||
|
||||
=== "Windows"
|
||||
If your system doesn't have `curl`, you can use `wget`:
|
||||
|
||||
```console
|
||||
$ powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
|
||||
$ wget -qO- https://astral.sh/uv/install.sh | sh
|
||||
```
|
||||
|
||||
Request a specific version by including it in the URL:
|
||||
|
||||
=== "macOS and Linux"
|
||||
Request a specific version by including it in the URL:
|
||||
|
||||
```console
|
||||
$ curl -LsSf https://astral.sh/uv/0.5.1/install.sh | sh
|
||||
|
@ -30,6 +30,16 @@ Request a specific version by including it in the URL:
|
|||
|
||||
=== "Windows"
|
||||
|
||||
Use `irm` to download the script and execute it with `iex`:
|
||||
|
||||
```console
|
||||
$ powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
|
||||
```
|
||||
|
||||
Changing the [execution policy](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.4#powershell-execution-policies) allows running a script from the internet.
|
||||
|
||||
Request a specific version by including it in the URL:
|
||||
|
||||
```console
|
||||
$ powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/0.5.1/install.ps1 | iex"
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue