How to save Python 3 files as .exe?
Author |
Message |
OREO Speedwagon
|
Posted: Tue Mar 29, 2011 12:25 pm Post subject: How to save Python 3 files as .exe? |
|
|
I'd like to quickly distribute a point calculating tool I've made in Python 3 to a group of different Windows laptops for a competition we're running - so we'd rather not install Python 3 on all the computers.
Is it possible to save Python files as .exe? I can't find the option in the IDLE, and it doesn't automatically make one like in SmallBasic. =/ |
|
|
|
|
|
Sponsor Sponsor
|
|
|
apython1992
|
Posted: Tue Mar 29, 2011 1:12 pm Post subject: RE:How to save Python 3 files as .exe? |
|
|
Unfortunately Python3X is still quite new and a lot of third party libraries haven't caught up yet. Py2exe is normally the the way to go for making Windows executables, but it isn't compatible with Python3 yet. However, 30 seconds of googling brought me to this page, which apparently accomplishes the same thing as py2exe and is compatible with Python 3: http://cx-freeze.sourceforge.net/
Hopefully this works for you, but if not the best option would be to write in Python 2 and use py2exe. Good luck! |
|
|
|
|
|
OREO Speedwagon
|
Posted: Mon Apr 04, 2011 9:58 am Post subject: Re: How to save Python 3 files as .exe? |
|
|
Another question - if I use the cx_Freeze tool to convert to .exe, will the executable run on both 32-bit and 64-bit versions of Windows?
or would to just be easier to have everyone install Python and run the .py script? >.> |
|
|
|
|
|
apython1992
|
Posted: Mon Apr 04, 2011 10:18 am Post subject: RE:How to save Python 3 files as .exe? |
|
|
I can't tell you this for sure because I've never built an exe on a 64-bit machine to run on a 32-bit machine, but since 32-bit Python _should_ run just fine on 64-bit machines, I don't see why it wouldn't work. Try it out and see what happens! |
|
|
|
|
|
|
|