uv's Windows launchers in ~/.local/bin are reported as duplicate global Pythons
Mantenedores costumam responder em até 1 dia
Avaliação
Esta issue ainda não foi avaliada.
Descrição
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
- Linguagem predominante
- Rust
- Estrelas
- 207
- Forks
- 45
- Merge médio
- 1d 4h
- PRs com merge (30d)
- 18
Preparar o ambiente
Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Sem guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de microsoft/python-environment-tools
-
pet server logs warnings as ANSI-colored stderr, shown as errorsTalvez já em andamento @karthiknadig assumiu há 1 dia. Abertabug
microsoft/python-environment-tools#571 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Free-threaded python3.13t interpreters are not discovered on LinuxTalvez já em andamento @karthiknadig assumiu há 2 dias. Abertabug
microsoft/python-environment-tools#569 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
enhancement
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
microsoft/python-environment-tools#537 ·
Mantenedores costumam responder em até 1 dia
-
debt
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
microsoft/python-environment-tools#538 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
enhancement
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
microsoft/python-environment-tools#539 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de microsoft/python-environment-tools
Issues semelhantes
-
documentation
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100
fastrevmd-lab/rustmistmcp#161 ·
-
arch-audit refactor
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
SocketDev/socket-patch#1011 ·
Mantenedores costumam responder em até 1 dia
-
bug user-priority/P2
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 92/100
Mantenedores costumam responder em até 1 dia
-
opencode: an unanswered --version probe launches opencode 2 without per-session service isolationAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
Mantenedores costumam responder em até 1 dia
-
security-advisory
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
MinBZK/regelrecht#1686 ·
Mantenedores costumam responder em até 1 dia