vkaul11
vkaul11

Reputation: 4214

python.exe is not a valid win32 application error coming suddenly

My python environment was working alright before and after running a C++ code multiple times from python subprocesses, I started the computer and saw that it says that python.exe is not a valid win32 application and I no longer access python. What changed I am not sure. Will I need to reinstall python? When I open the IDE, this message comes Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on win32

Upvotes: 1

Views: 6382

Answers (1)

Vahid Farahmand
Vahid Farahmand

Reputation: 2558

Download (or open if you already have) dependency walker, then open python.exe in it. See if you are missing a DLL or got a DLL corrupted. You may require to re-install python, some reference DLL or exe files could be corrupted/overwritten/modified/deleted.

Upvotes: 2

Related Questions