Pyinstaller 找不到模块?(加载 Python DLL 时出错)

Fer*_*oPH 3 python compilation pyinstaller

我用 pyinstaller 编译了我的程序,它在我的计算机上运行良好,但是每当我想在另一台计算机(没有 python)上运行它时,我会收到以下错误:

Error loading Python DLL  
'C:\Users\perez\AppData\Local\Temp\_MEI28162\python310.dll'.
LoadLibrary: Cannot find specified module
Run Code Online (Sandbox Code Playgroud)

我能做些什么?我不允许在另一台计算机上安装 python

Neu*_*ron 5

我遇到了同样的问题,这是因为我使用的是输出build/main而不是dist/maindist/main.exe如果你使用了--onefile