I have MacBook on apple silicon and I need make ".exe" file from python file. I have tried use pyinstaller, but it give error:
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!
How can I make ".exe" file. Also I need to use multiple python and other files.
CodePudding user response:
.exe files are for windows only. If you want to make an executable file on Mac, then you have to convert it to .app not .exe. Refer to this video - https://www.youtube.com/watch?v=DVOoHL2Bp_o&t=211s .