₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,047 members, 8,420,050 topics. Date: Thursday, 04 June 2026 at 10:14 AM

Toggle theme

How To Port Python Programs Into .exe - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingHow To Port Python Programs Into .exe (1481 Views)

1 Reply (Go Down)

How To Port Python Programs Into .exe by Nobody:
Is there any way I can really turn my python 3 programs into .exe huh I know about py2exe and cx_Freeze. But, is that all there is to it??

Is there a way I can make my app open like let say - yahoo messenger?? (with cx_Freeze- before the app opens, the cmd will come up first - i don't like that)

help me out it is urgent - thanks Gurus.

http://godvillawess..com/
Re: How To Port Python Programs Into .exe by Nobody: 12:42pm On Nov 05, 2012
set the base to Win32GUI
like this

Executable(
script="yourapp.py",
base="Win32GUI",
icon="yourapp.ico"
)
Re: How To Port Python Programs Into .exe by Nobody: 1:54am On Nov 06, 2012
webdezzi: set the base to Win32GUI
like this

Executable(
script="yourapp.py",
base="Win32GUI",
icon="yourapp.ico"
)
please Sir, I don't understand what you mean.
This is the code in my
setup.py
.
from cx_Freeze import setup, Executable

setup(
name = "ejykeproject " ,
version ="0.1" ,
description = "testing" ,
executables = [Executable("ejykeproject.py)] ,
)

.
Sir, do you use cx_Freeze?
.
Where exactly do you want me to set the base?
Thanks for your help.
Re: How To Port Python Programs Into .exe by Nobody: 1:25am On Nov 07, 2012
can we drop the sirs?

yes, i use cx_freeze,

this should work for you

from cx_Freeze import setup, Executable

exe = Executable(
script="ejykeproject.py",
base="Win32GUI",
icon="ejykeproject.ico",
compress=False
)

buildOptions = {"optimize": 0 }



setup(name = "ejykeproject",
version = "0.1",
description = "this application does this and that",
executables = [exe],
options = dict(build_exe = buildOptions))
Re: How To Port Python Programs Into .exe by Nobody: 10:06am On Nov 07, 2012
webdezzi: can we drop the sirs?

yes, i use cx_freeze,

this should work for you
Let me try it out - thanks by the way.
Re: How To Port Python Programs Into .exe by AkinDavid2: 3:50pm On Nov 08, 2012
I'm just learning Python..just basics can any one help please?
Re: How To Port Python Programs Into .exe by Nobody: 9:09am On Nov 16, 2012
Akin-David:
I'm just learning Python..just basics can any one help please?
go to youtube and type "burky python beginner", you would enjoy his mode of teaching
Re: How To Port Python Programs Into .exe by Nobody: 6:37pm On Nov 16, 2012
i thought am the only one here who listens to bucky roberts.
1 Reply

Need To Secure Your Compiled Software (.msi Or .exe) To 1/PC?How Do I Fix "Player.exe Has Stopped Working" Error Message.How Do I Convert .mdb Files To .exe Files234

My Just Concluded NYSC WEBSITE/APP(check it out)This Guy Stopped The Biggest Ransomware Attack In History. This Was His RewardWeb And Android Application Developer Needed.