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?

  • Can I see the file name? - Pavel Durmanov
  • @Alban - TestGame.py, but it seems to me that the error has nothing to do with this, the file is compiled, but the .exe file does not work. - Michael
  • Did you change the name of the exe file? - Pavel Durmanov
  • @Alban - no, I haven't - Mikhail

0