How to make an executable with Python and Pygame

喜你入骨 提交于 2021-01-29 16:06:56

问题


I need some help with making an executable out of a Python script. I have tried cx_freeze but get No module named re and I cant use py2exe because I am using Python 3.3.2.

The code of my setup.py file for cx_freeze:

import sys
from cx_Freeze import setup, Executable

setup(
    name = "10SecondDestruction" ,
    version = "1.0" ,
    description = "10SecondDestruction" ,
    executables = [Executable("10 Second Destruction.py")] ,
    )

来源:https://stackoverflow.com/questions/19192091/how-to-make-an-executable-with-python-and-pygame

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!