Windows Python 3.12.7 64-bit (AMD64) fails to run on on Windows 11 ARM
未关闭
还没有人认领这个 Issue。
type-bug
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 35.9k
- PR 合并指标
- PR 指标待抓取
描述
Bug report
Bug description:
Installing (AMD) 64-bit Python on Windows 11 ARM is not a problem, however on running python.exe this dialog pops up:
python.exe - Bad Image
C:\Users\Brecht Machiels\AppData\Local\Programs\Python\Python312\VCRUNTIME140.dll is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator or the software vendor for support. Error status 0xc000007b.
OK
Running py -V:3.12 returns no output, but exists with a 127 return code.
Renaming vcruntime140.dll and vcruntime140_1.dll that sit alongside python.exe fixes the issue.
The 32-bit version of Python 3.12.7 does not suffer from this issue.
For completeness: I'm running Windows 11 ARM on an M1 MacBook using UTM.
CPython versions tested on:
3.12
Operating systems tested on:
Windows
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,使用 Python 3.12.7 AMD64 安装程序在 Windows 11 ARM 上复现该故障,并将其与正常工作的 32 位版本进行比较。检查随附的 vcruntime140.dll 和 vcruntime140_1.dll 的行为,包括已报告的 DLL 重命名 workaround;当 python.exe 能够启动,并且 py -V:3.12 无需该 workaround 即报告已安装的版本时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- operating-systems
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100