Pyinstaller可以找到一个模块吗? (错误加载Python DLL)

发布于 2025-01-29 02:29:59 字数 265 浏览 3 评论 0原文

我使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

要走就滚别墨迹 2025-02-05 02:29:59

我有同样的问题,这是因为我在build/main中使用了输出,而不是dist/maindist/main.exe如果您使用- OneFile

I had the same problem and it was because I was using the output in build/main instead of dist/main (dist/main.exe in case you used --onefile)

任谁 2025-02-05 02:29:59

好的,它不起作用,因为我用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

路弥 2025-02-05 02:29:59

复制python.exe所在的文件夹并运行此python.exe

Copy the folder where your Python.exe is located and run this Python.exe

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文