Windows Python 3.12.7 64-bit (AMD64) fails to run on on Windows 11 ARM
未關閉
還沒有人認領這個 Issue。
type-bug
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- 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