ImportError: DLL load failed: %1 is not a valid Win32 application. But the DLL's are there

前端 未结 21 1525
礼貌的吻别
礼貌的吻别 2020-11-22 14:12

I have a situation very much like the one at ImportError: DLL load failed: %1 is not a valid Win32 application, but the answer there isn\'t working for me.

My Python

21条回答
  •  暖寄归人
    2020-11-22 14:48

    I had the same problem. Here's what I did:

    1. I downloaded pywin32 Wheel file from here, then

    2. I uninstalled the pywin32 module. To uninstall execute the following command in Command Prompt.

      pip uninstall pywin32

    3. Then, I reinstalled pywin32. To install it, open the Command Prompt in the same directory where the pywin32 wheel file lies. Then execute the following command.

      pip install Wheel file will be like: piwin32-XXX-cpXX-none-win32.whl

    It solvs the problem for me. You may also like to give it a try. Hope it work for you as well.

提交回复
热议问题