astral-sh / uv

An extremely fast Python package installer and resolver, written in Rust.
https://astral.sh/
Apache License 2.0
15.65k stars 464 forks source link

UCRT64 ~ # uv toolchain list warning: `uv toolchain list` is experimental and may change without warning. error: Running `py --list-paths` failed with status exit code: 2 #4918

Closed az49xcl closed 1 week ago

az49xcl commented 3 weeks ago

platfrom:msys64 UCRT64 win11 uv :0.2.15 cmd: uv toolchain list python --version: 3.11.9

UCRT64 ~

uv toolchain list

warning: uv toolchain list is experimental and may change without warning. error: Running py --list-paths failed with status exit code: 2 with exit code: 2 --- stdout:

--- stderr: unknown option --list-paths usage: py [option] ... [-c cmd | -m mod | file | -] [arg] ... Try `python -h' for more information.

charliermarsh commented 3 weeks ago

I think this was fixed in a newer version.

charliermarsh commented 3 weeks ago

https://github.com/astral-sh/uv/issues/4522

charliermarsh commented 3 weeks ago

Can you try with the latest uv? 0.2.15 is several versions behind.

az49xcl commented 3 weeks ago

Unable to build uv under msys2(python -m pip install "uv=0.2.23") 1.rust toolchain : stable-x86_64-pc-windows-gnu (default) 2.cargo version: 1.79

error: failed to run custom build command for libz-ng-sys v1.1.15 Caused by: build-script-build_zng

charliermarsh commented 3 weeks ago

You're trying to build uv from source, is that intentional? Seems like you need a C++ toolchain for libz-ng-sys.