我有蘋果芯片上的 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 和其他檔案。
uj5u.com熱心網友回復:
.exe 檔案僅適用于 Windows。如果要在 Mac 上制作可執行檔案,則必須將其轉換為 .app 而不是 .exe。請參閱此視頻 - https://www.youtube.com/watch?v=DVOoHL2Bp_o&t=211s。
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/362581.html
