admin管理员组文章数量:1356914
I’m trying to compile a Python script into an .exe file using PyInstaller on a Windows virtual machine (VM) (since the target environment requires an .exe, and my main workstation is a Mac). The compilation works fine on the VM, but when I transfer the .exe to another server/computer, I get the error:
This app is incompatible with the version of Windows running on this computer.
Check the system information and contact the software publisher.
Even a simple script like print("Hello World")
produces the same error. Here’s what I’ve checked:
- The VM uses Windows 11, while the target server runs Windows 10 (but I thought Windows executables were backward-compatible).
- Python isn’t installed on the server (as PyInstaller should bundle the interpreter).
Question:
Why does the compiled .exe fail on the target machine, and how can I fix this?
P.s. Everything is installed on a 64-bit system.
本文标签: pythonProblem when compiling with pyinstaller and sending to another serverStack Overflow
版权声明:本文标题:python - Problem when compiling with pyinstaller and sending to another server - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743972437a2570743.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论