Can one turn a python file into a standalone executable for windows via a gui program?
Thanks
Can one turn a python file into a standalone executable for windows via a gui program?
Thanks
Here's an useful link Click Here
But, leaving the joke aside, you could use the py2exe library: Click Here
I have already tried py2exe
cx_Freeze works with both versions of Python
http://www.blog.pythonlibrary.org/2010/08/12/a-cx_freeze-tutorial-build-a-binary-series/
Here is an example ...
""" con_setup2.py
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
I used:
http://cx-freeze.sourceforge.net/
cx_Freeze-4.3.1.win32-py3.3.msi
tested with Python33
"""
from cx_Freeze import setup, Executable
import sys
sys.argv.append("build") # replaces commandline arg 'build'
# change the filename to your program file
filename = "HelloWorld.py"
setup(
name = "Hello World",
version = "1.0",
description = "console cx_Freeze script",
executables = [Executable(filename)])
Another option is to use IronPython, look at this example ...
http://www.daniweb.com/software-development/python/code/455497/ironpython-revisited-99-bottlse-of-beer
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.