compiling a python program that uses pygame into an executable

前端 未结 3 922
旧时难觅i
旧时难觅i 2021-01-13 07:33

I wanted to compile my python program that uses pygame into an executable using py2exe but I\'m experiencing some problems. I run the script in the windows command line and

3条回答
  •  猫巷女王i
    2021-01-13 08:06

    You should use PyInstaller to turn your program and its dependencies into a standalone executable
    https://pypi.org/project/PyInstaller/
    Using it is as simple as running pyinstaller /path/to/yourscript.py

提交回复
热议问题