astral-sh / uv

An extremely fast Python package and project manager, written in Rust.
https://docs.astral.sh/uv
Apache License 2.0
17.83k stars 518 forks source link

Installing on Windows 2016 fails because of TLS versions #2085

Open gozdal opened 5 months ago

gozdal commented 5 months ago

When trying to install uv in our CI env I noticed that Windows 2016 boxes failed to download the install script because of Could not create SSL/TLS secure channel. Later Windows versions were fine.

I worked around it with:

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;
irm https://astral.sh/uv/install.ps1 | iex

Perhaphs it'd be good to add it to the docs?

Gankra commented 5 months ago

We explicitly pass --tlsv1.2 to curl for the shell installer already, so that seems supremely reasonable for the powershell installer to set too.

Gankra commented 5 months ago

Could you confirm for me that this expression works on your windows server?

irm -SslProtocol Tls12 https://astral.sh/uv/install.ps1 | iex

(It's probable once the script downloads it will then error trying to fetch the actual binaries, but that's easier to fix than the raw irm | iex)

gozdal commented 5 months ago

Unfortunately not: obraz

Gankra commented 5 months ago

Ah shoot, yeah that flag is relatively bleeding edge (and maybe Powershell Core exclusive?).