简体   繁体   中英

Error loading python37 dll on Windows 7 after Pyinstaller created exe

I created an exe file using PyInstaller and it works on my PC with Windows 8.1 and laptop with Windows 10, but on computers with Windows 7 it has error

"error loading python37 dll " and something about dynamic linked libraries.

EDIT: Error loading Python DLL 'C:\\Users\\Dell\\Appdata\\Local|Temp|_MEI16442\\python37.dll'. LoadLibrary: Procedure of initialize dynamic linked library (DLL) failed. It is translated from Polish

Do you know maybe how can I fix it? I was reading about static linked dll but I dont know how to do it. I am working on Windows only, I dont know Linux/Mac.

这曾经一直发生在我身上,而且总是因为我试图从build文件夹运行可执行文件,而有效的文件在dist文件夹中。

I had this same issue while compiling the executable with a Pyinstaller command. To fix it, I added the --noupx option and everything worked fine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM