不是有效的 Win32 应用程序...Python、PyInstaller、Windows7

Not a valid Win32 application... Python, PyInstaller, Windows7

我如何知道我构建的是 32 位应用程序还是 64 位应用程序?

我用 Pyinstaller 创建了 .exe,它在我的电脑(Win7 Ultimate 64)上运行良好,当我尝试在虚拟机(Win7 Home Premium 64)上 运行 相同的 exe 时,我得到:错误193 不是有效的 Win32 应用程序。

Python 2.7 32 位 PyInstaller 2.1(我想也是32)

难道这个 32 位应用程序不应该也能在 64 位上正常工作吗?

使用pip卸载然后重新安装pyinstaller。我第一次使用 pyinstaller 它工作,从那以后它损坏了。重新安装解决了问题。

使用 "python27\Scripts>pip uninstall pyinstall" 卸载并重新安装 "python27\Scripts>pip install pyinstall" 对我有用。