February 21st, 2012, 09:50 AM
Anyone has a nice py2exe "MySetup.py" example file which contains the right source for including TKinter GUI?
Many thanx in advance.
October 15th, 2012, 02:15 AM
November 9th, 2012, 07:49 PM
can help me with python assignment please... ??!?!
2 days from now ,email me if yes
November 13th, 2012, 05:16 AM
The step-by-step guide was very clear and simply put!
January 29th, 2013, 10:36 AM
cx_freeze for Python3
If you want to use a py2exe type approach to Python3 code, the you have to use cx_freeze. Here is an example ...
Here is the utterly simple sample Python script ...
Using cx_freeze with Python33 to package a console
program to an executable file (.exe in Windows OS).
Might want to put a console-wait-line in at the end of your program.
Put this setup program and your console program file into the same
directory. Change the filename in this setup program and also edit
name, version and description in setup() if you so desire.
A directory 'build' is created with a subdirectory 'exe.win32-3.3'
containing all the files needed for distribution including the
.exe file named after the console program file.
The total distribution has a size of about 4.8 Mb.
this includes the Python33.dll interpreter
and some small pyds and a zip file
tested with Python33
from cx_Freeze import setup, Executable
sys.argv.append("build") # replaces commandline arg 'build'
# change the filename to your program file
filename = "HelloWorld.py"
name = "Hello World",
version = "1.0",
description = "console cx_Freeze script",
executables = [Executable(filename)])
input("Press enter to go on ...")
Real Programmers always confuse Christmas and Halloween because Oct31 == Dec25
February 20th, 2013, 01:26 PM
August 25th, 2013, 02:45 AM
Is there are any way to bundle all files except the .exe , because once I convert my .py program the py2exe creates 9 files and I want to keep only the .exe file and bundle all others in a archive.
Edit: I found it -
bundle everything but the Python interpreter
bundle everything, including the Python interpreter"
November 15th, 2013, 02:27 PM
Pardon my ignorance, but the link just leads me to a blank page, saying if you need help post on the forums?
And will this work for python 3.1?
November 25th, 2013, 04:03 PM
I've had trouble with this before, you made it very clear - thanks!
February 14th, 2014, 01:43 PM
Link seems to be broken. I can't get acces to it