Search code examples
pythonpyinstaller

Cant run executable after running the pyinstaller successfully


output after double clicking the exe file

made a tic tac toe game with a gui that runs through pyton but get an error when I run it through the exe made with pyinstaller command used in powershell to make the exe: pyinstaller.exe --onefile tic.py


Solution

  • Found the issue, changed the code from pg.font.Font(None, 30) to pg.font.SysFont('comicsans', 30)