I'm addicted to cx_freeze, so make a note. The environment is window7 (64bit), python is Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32.
setup.py Sample setup.py.
setup.py
import sys
from cx_Freeze import setup, Executable
base = None
if sys.platform == "win32":
base = "Win32GUI"
setup(
name = "foo",
version = "0.1",
description = "foo",
executables = [Executable("foo.py", base = base)])
From the command line
python setup.py build
You can create an exe with.
_tkinter.TclError: Can't find a usable init.tcl in the following directories: C:/home/workspace/tawami/software/lib/tcl8.5 C:/lib/tcl8.5 C:/lib/tcl8.5 C:/library C:/library C:/tcl8.5.10/library C:/tcl8.5.10/library
Set the environment variable TCL_LIBRARY to C: \ Python27 \ tcl \ tcl8.5, TK_LIBRARY to C: \ Python27 \ tcl \ tk8.5, etc., according to your environment.
version conflict for package "Tcl": have 8.5.10, need exactly 8.5.2
Comment out package require -exact Tcl 8.5.2 in C: \ Python27 \ tcl \ tcl8.5 \ init.tcl and c: /lib/tk8.5/tk.tcl.
Recommended Posts