python / python/cpython

Windows Python 3.12.7 64-bit (AMD64) fails to run on on Windows 11 ARM

オープン
#125,872 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. 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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。