且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

错误193%1不是有效的Win32应用程序

更新时间:2022-05-12 01:13:51

如果您使用的是32位Python,而DLL是64位DLL,也会出现此错误,如果DLL是32位,而您的Python是64位,则同样如此。

If you are using a 32 bit Python and the DLL is a 64 bit DLL you will get this error, likewise if the DLL is 32 bit and your Python is 64 bit.

您可以使用 dumpbin / HEADERS&lt检查此错误; dll文件路径> 命令从Visual Studio命令提示符进入。

You can check this using the dumpbin /HEADERS <dll filepath> command from a visual studio command prompt.