I made a little game in Python 3.4 and I need to compile it. Shift + PCM opened the command window in the game file, entered pyinstaller -w (file name) .py into it. I go to the dist folder, press (file name) .exe, and it gives the error "Failed to execute script (file name)".
Question : What could be the error and how to fix it?