Pyinstaller可以找到一个模块吗? (错误加载Python DLL)
我使用Pyinstaller编译了程序,并且在计算机上工作正常,但是每当我在另一台计算机(没有python)中运行它时,我会收到以下错误:
Error loading Python DLL
'C:\Users\perez\AppData\Local\Temp\_MEI28162\python310.dll'.
LoadLibrary: Cannot find specified module
我该怎么办?我不允许在另一台计算机上安装Python
I compiled my program with pyinstaller, and it works fine on my computer, but whenever I ty to run it in another computer (with no python), I get the following error:
Error loading Python DLL
'C:\Users\perez\AppData\Local\Temp\_MEI28162\python310.dll'.
LoadLibrary: Cannot find specified module
What can I do? I'm not allowed to install python on the other computer
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我有同样的问题,这是因为我在
build/main
中使用了输出,而不是dist/main
(dist/main.exe
如果您使用- OneFile
)I had the same problem and it was because I was using the output in
build/main
instead ofdist/main
(dist/main.exe
in case you used--onefile
)好的,它不起作用,因为我用Pyinstaller编译了脚本3.10,但是Windows 7的最大Python版本为3.8
Ok, it was not working because I compiled the script with pyinstaller having python 3.10, but Windows 7's maximum python version is 3.8
复制python.exe所在的文件夹并运行此python.exe
Copy the folder where your Python.exe is located and run this Python.exe