astral-sh / uv

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

uv install python on Windows fails during archive extraction #6331

Open mrijken opened 2 months ago

mrijken commented 2 months ago

If I call uv python install 3.12 on W11 with uv 0.3.0, I get:

Searching for Python versions matching: Python 3.12
cpython-3.12.5-windows-x86_64-none ------------------------------ 4.47 MB/23.57 MB
error: Failed to install cpython-3.12.5-windows-x86_64-none: Failed to extract archive: cpython-3.12.5%2B20240814-x86_64-pc-windows-msvc-install_only_stripped.tar.gz

I tried it multiple times and every time I get the same issue. However when I add -vv to make it verbose, I will install without issues.

I could reproduce it for Python 3.11 also.

pplmx commented 2 months ago

After the retry, it works

image

zanieb commented 2 months ago

It might be antivirus, it can do weird things interrupting large zip files. cc @charliermarsh

mikey-no commented 2 months ago

Running: uv python install 3.8.5 I get error:

Searching for Python versions matching: Python 3.8.5
cpython-3.8.5-windows-x86_64-none ------------------------------ 20.97 MB/32.45 MB                                                                               error: Failed to install cpython-3.8.5-windows-x86_64-none
  Caused by: Failed to extract archive: cpython-3.8.5-x86_64-pc-windows-msvc-shared-pgo-20200830T2254.tar.zst

I am using: uv 0.3.5 (6c62d9fbf 2024-08-27) On Windows 10. I re-ran the same command: uv python install 3.8.5 a second time and it worked with no other changes.