我使用 Ubuntu、Python 3.4 并尝试使用 py2exe 将我的 py 脚本编译为 exe。 .
不幸的是,当我尝试使用命令“build_exe”时,它会产生错误! 谁能帮助我解决它或建议如何以其他方式将 py 项目编译为 exe?
错误代码:
NameError: 名称“WinDLL”未定义
。
最佳答案
py2exe 适用于 Windows...
在 linux 上你可以试试 PyInstaller:
http://www.pyinstaller.org/
PyInstaller is now able to build Windows executables when running under Linux. See documentation for more details.
关于Python3.4 Py2exe,报错-name 'WinDLL' is not defined,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25913482/