问题
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