uv's Windows launchers in ~/.local/bin are reported as duplicate global Pythons
Los mantenedores suelen responder en 1 día
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Problem: On Windows, uv python install creates launcher executables (python.exe, python3.exe, python3.13.exe) in ~/.local/bin, which uv puts on PATH. PET reports each launcher as a separate GlobalPaths environment in addition to the Uv installation they launch, so a single interpreter appears four times in VS Code's environment list and picker.
The launchers are trampolines, not symlinks. When PET spawns one, it reports uv's minor-version junction (%APPDATA%\uv\python\cpython-3.13-windows-x86_64-none) as sys.prefix. Uv::try_from_managed_install only looked at the executable path and returned None for junction prefixes, so the launchers fell through to GlobalPaths.
> pet find --json (uv's ~/.local/bin on PATH)
Uv 3.13.15 %APPDATA%\uv\python\cpython-3.13.15-windows-x86_64-none\python.exe
GlobalPaths 3.13.15.final.0 %USERPROFILE%\.local\bin\python.exe
GlobalPaths 3.13.15.final.0 %USERPROFILE%\.local\bin\python3.13.exe
GlobalPaths 3.13.15.final.0 %USERPROFILE%\.local\bin\python3.exe
Environment: Windows 11, PET main @ 4ca7c03, uv 0.12.17, CPython 3.13.15 via uv python install 3.13 --default.
Before (VS Code):

Related: MSYS2 (microsoft/vscode-python-environments#1876) and the python.org Python Install Manager (%LOCALAPPDATA%\Python\bin aliases) are other Windows launchers that PET does not group with the installation they start; Windows find_symlinks is still a stub.
Steps to verify fix:
- On Windows, install uv and run
uv python install 3.13 --defaultsopython.exe,python3.exe, andpython3.13.exeexist in%USERPROFILE%\.local\bin, with that folder onPATH. - Run
pet find --json; verify a single environment: kindUv,%APPDATA%\uv\python\cpython-3.13.x-…\python.exe. - Run
pet resolve %USERPROFILE%\.local\bin\python3.13.exe --json; verify it returns that sameUvenvironment. - In VS Code (with microsoft/vscode-python-environments#1877), verify the interpreter appears once, under Global.
- Remove
~/.local/binfromPATHand rerunpet find; verify theUvenvironment is still reported.
Found by Copilot
- Lenguaje dominante
- Rust
- Estrellas
- 207
- Forks
- 45
- Merge medio
- 1 d 4 h
- PR fusionados (30 d)
- 18
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoft/python-environment-tools
-
pet server logs warnings as ANSI-colored stderr, shown as errorsPosiblemente ocupada @karthiknadig la tomó hace 5 días. Abiertobug
microsoft/python-environment-tools#571 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Free-threaded python3.13t interpreters are not discovered on LinuxPosiblemente ocupada @karthiknadig la tomó hace 5 días. Abiertobug
microsoft/python-environment-tools#569 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
microsoft/python-environment-tools#537 ·
Los mantenedores suelen responder en 1 día
-
debt
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
microsoft/python-environment-tools#538 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
microsoft/python-environment-tools#539 ·
Los mantenedores suelen responder en 1 día
Todos los issues de microsoft/python-environment-tools
Issues similares
-
XmlFragment children, successors and siblings stop at the first child that is not an XML typeAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
bug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
repowise-dev/repowise#3374 ·
Los mantenedores suelen responder en 1 día
-
awaiting-response bug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
wildcard/caro#1562 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
objectionary/sodg.rs#301 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
HakanSeven12/OpenCADStudio#1706 · 1 comentario ·
Los mantenedores suelen responder en 1 día