Python Install Manager installed runtimes appear in winget list and winget will attempt to manage them
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 344
- 派生
- 74
- 平均合并
- 1 天 3 小时
- 30 天内合并 PR
- 7
描述
Install source and version
- Installed from the Windows Store
- Installed with the MSIX from python.org
- Installed with the MSI from python.org
- Installed with
winget install 9NQ7512CXL7T
Version: 26.0.240.0
Describe the bug
when Python Install Manager installs a new runtime, that runtime is listed in the winget list command. This is new-ish, and it introduces a weird bug where winget upgrade --all will detect it as needing an upgrade, and install the "old" style python installer, which may clobber the py command with the old launcher.
To Reproduce
Steps to reproduce the behavior:
- Open terminal.
- Install pymanager
winget install 9NQ7512CXL7T - run the launcher
pyand let it automatically install the latest version of Python (3.14.3 as of this writing) - run
winget list
Expected behavior
Either the runtime doesn't exist at all in the list, being managed by Python Install Manager, OR the runtime exists with proper version listed and allows winget to upgrade the appropriate package rather than installing the standalone.
Observed behavior
The runtime appears as:
Python 3.14.3 Python.Python.3.14 < 3.14.0 3.14.3 winget
The < 3.14.0 is the real killer here, but I suspect even with the correctly reported version it would still clobber if the runtime version was bumped before the Python Install Manager got its chance to grab the new one.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用 winget install 9NQ7512CXL7T、py 启动器、winget list 和 winget upgrade --all 重现该问题。跟踪 Python Install Manager 如何将自动安装的运行时注册到 winget,并确定它们应该被隐藏,还是报告为受管理的软件包;当 winget 不再提议安装独立安装程序,也不再覆盖 py 命令时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- operating-systems, tooling
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100