Cryptic error for python -m uv pip compile --python-version x.y.z
when using the Windows app store Python app
#4522
Labels
python -m uv pip compile --python-version x.y.z
when using the Windows app store Python app
#4522
I am running the PSF's CPython build from the Windows app store in order to benefit from the automatic updates.
This build omits the Python launcher for Windows, so the
py --list-paths
command isn't available.This results in a cryptic error when requesting transitive dependency resolution for a Python version other than the one used to invoke
uv
:This arises even if source builds are disabled (so there shouldn't be any need to extract dynamic runtime dependency information from a source build):
The actual error in these commands was that the
--python
command line option to specify the target Python runtime was missing (I had been mislead by testing on Linux, which had used Fedora'spython3.11
alternative Python install to satisfy the3.11
version check - it would actually be handy if there was a--toolchain-preference only-specified
option to keepuv
from trying to autodiscover Python runtimes).The text was updated successfully, but these errors were encountered: