Windows Python 3.12.7 64-bit (AMD64) fails to run on on Windows 11 ARM
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 77.2k
- Fork
- 35.9k
- Metriche di merge delle PR
- Metriche PR in attesa
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia riproducendo il problema in Windows 11 ARM con l'installer AMD64 di Python 3.12.7 e confrontalo con la versione a 32 bit funzionante. Verifica il comportamento delle vcruntime140.dll e vcruntime140_1.dll incluse, compreso il workaround segnalato per la ridenominazione della DLL; il lavoro è completato quando python.exe si avvia e py -V:3.12 riporta la versione installata senza quel workaround.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- operating-systems
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100