Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Sensei, please teach me how to create exe file for python3 + tdl. I have been tearing me hair out because of it

(+2)

No problem! I used cx_freeze to build the exe, there's an example on the tdl GitHub repo. I modified setup.py for my project and ran it from a Python virtualenv with the packages required to run the game.

It gave me an error the first time I tried to run. It looked like cx_freeze didn't copy across all the numpy modules that tdl needs. I added NumPy to the list of packages in setup.py and that solved the problem. I included the setup.py with the source if you want to take a look.

You're my hero