Skip to content

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

@brechtm

Description

@brechtm

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions