astral-sh/uv

uv python list doesn't show all possible combinations of python installation

Open

#4,988 opened on Jul 11, 2024

View on GitHub
 (3 comments) (1 reaction) (0 assignees)Rust (84,934 stars) (3,111 forks)batch import
clihelp wanted

Description

Hi! When running (today installed) uv to install python locally and discover some, it doesn't show all possible options for current architecture:

$ uv python list
warning: `uv python list` is experimental and may change without warning.
cpython-3.12.3-linux-x86_64-musl     <download available>
cpython-3.12.3-linux-x86_64-gnu      /usr/bin/python3
cpython-3.12.3-linux-x86_64-gnu      /bin/python3
cpython-3.11.9-linux-x86_64-musl     <download available>
cpython-3.10.14-linux-x86_64-musl    <download available>
cpython-3.9.19-linux-x86_64-musl     <download available>
cpython-3.8.19-linux-x86_64-musl     <download available>
cpython-3.7.9-linux-x86_64-musl      <download available>

But, when you try by guess-work to install cpython-3.11.9-linux-x86_64-gnu, it works:

$ uv python install cpython-3.11.9-linux-x86_64-gnu
warning: `uv python install` is experimental and may change without warning.
Searching for Python versions matching: cpython-3.11.9-linux-x86_64-gnu
Installed Python 3.11.9 to: /home/khazakar/.local/share/uv/python/cpython-3.11.9-linux-x86_64-gnu
Installed 1 version in 3.44s

I'm running Ubuntu 24.04, uv version 0.2.24, x86_64 arch.

Contributor guide