microsoft / microsoft/winget-cli

Winget recognize the Legacy Python Manager as an outdated version of Python even though Python is up to date

Open
#6,372 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Command-Upgrade Issue-Bug Needs-Attention
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

Relevant area(s)

WinGet CLI

Relevant command(s)

winget upgrade

Brief description of your issue

Apparently, there are issues with winget if Python was installed via the new Python Install Manager but you continue to use the legacy Python launcher due to known compatibility issues on Windows. In this case, the system does not correctly recognize that the Python version on the system is already up to date.

`PS C:\Windows\System32> python --version
Python 3.14.6

PS C:\Windows\System32> winget list --id Python.Python.3.14 --exact
No installed package matching the specified criteria was found.

PS C:\Windows\System32> where.exe python
C:\Users\Dominik\AppData\Local\Python\bin\python.exe
C:\Users\Dominik\AppData\Local\Microsoft\WindowsApps\python.exe
C:\msys64\mingw64\bin\python.exe

PS C:\Windows\System32> winget upgrade
Python 3.14.6 Python.Python.3.14 < 3.14.0 3.14.6 winget`
Steps to reproduce
  1. Install Python 3.14.6 using the Python Install Manager - https://www.python.org/downloads/
  2. Install the Legacy Python Launcher due to Windows compatibility issues (https://docs.python.org/3/using/windows.html => https://www.python.org/ftp/python/3.14.0/win32/launcher.msi)
  3. Check using winget upgrade
Expected behavior

It should be correctly detected that the Python version is up to date.

Actual behavior

It is suggested that you need to update Python, but that doesn't work either.

PS C:\Windows\System32> winget list --id Python.Python.3.14 --exact
No installed package matching the specified criteria was found.
Environment
Windows-Paket-Manager v1.29.280
Windows: Windows.Desktop v10.0.26200.8875
Systemarchitektur: X64
Paket: Microsoft.DesktopAppInstaller v1.29.280.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported Python Install Manager and Legacy Python Launcher setup, then reproduce the mismatch with winget list --id Python.Python.3.14 --exact and winget upgrade on the stated Windows Package Manager version. Trace how WinGet identifies the installed Python package and compare that result with python --version; done means an up-to-date Python installation is no longer offered as an upgrade.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.