I am trying to compile my Python file to an Onefile-EXE with py2exe using this code for the setup file:
import py2exe, sys, os
sys.argv.append('py2exe')
setup(
options = {'py2exe': {'bundle_files': 1, 'compressed': True}},
windows = [{'script': "program.py"}],
zipfile = None,
)
The problem is whenever I compile the code I get this error in Command Prompt: CMD Error py2exe
I don't want to use pyinstaller to compile because that makes all my EXE files look like malware.
I have looked all over stackoverflow for an answer to this (some other ones had a similar but not exact error)
Thanks!