python / python/cpython

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

Aberta
#125,872 5 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

type-bug
Linguagem predominante
Python
Estrelas
77.2k
Forks
36k
Métricas de merge de PRs
Métricas de PR pendentes

Descrição

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

Guia de contribuição

Abrir o guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Direção de pesquisa

Comece reproduzindo a falha no Windows 11 ARM com o instalador AMD64 do Python 3.12.7 e compare-a com a versão de 32 bits que funciona. Verifique o comportamento de vcruntime140.dll e vcruntime140_1.dll incluídas, incluindo o workaround relatado de renomear a DLL; considera-se concluído quando python.exe é iniciado e py -V:3.12 informa a versão instalada sem esse workaround.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
python
Domínio
operating-systems
Tipo de issue
Bug
Dificuldade
4/5
Tempo estimado
3-5 dias
Status de atividade
Estagnada
Clareza
Precisa de esclarecimento
Facilidade para iniciantes
35/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.