【发布时间】:2021-12-27 15:07:51
【问题描述】:
我有苹果硅上的 MacBook,我需要从 python 文件制作“.exe”文件。 我尝试过使用 pyinstaller,但它给出了错误:
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PyInstaller/utils/osx.py", line 211, in fix_exe_for_code_signing
assert linkedit_seg.fileoff + linkedit_seg.filesize == \
AssertionError: Sanity check failed!
如何制作“.exe”文件。我还需要使用多个 python 和其他文件。
【问题讨论】:
-
或许你可以试试
auto-py-to-exe -
如果你想做好的交叉编译,请使用 golang 而不是 python :)
-
@mama 我写程序的时候没想到要创建一个“.exe”
-
你不能交叉构建 Python。这是不可能的
标签: python macos pyinstaller apple-m1 apple-silicon