Is there any way or tool to automatically change python output script format (.py) to exe ? I want to run my app on every Windows computers including that haven't got installed python.
-
2freeze, which comes with the standard library, and the less limited py2exe are the ones I know of.rlms– rlms2013-08-20 20:14:53 +00:00Commented Aug 20, 2013 at 20:14
-
2This question has been asked many times before and is easily google-able. The first four results for "Python to Exe" are useful links.Chris Pfohl– Chris Pfohl2013-08-20 20:18:57 +00:00Commented Aug 20, 2013 at 20:18
-
I tried "Change Python output format to exe", but I didn't found any interesting answer.TN888– TN8882013-08-20 20:22:20 +00:00Commented Aug 20, 2013 at 20:22
-
@ChristopherPfohl Read that : meta.stackexchange.com/questions/5280/embrace-the-non-googlersTN888– TN8882013-08-20 20:24:41 +00:00Commented Aug 20, 2013 at 20:24
-
1@Ty221 Sure, but my comment was primarily a 'duplicate' warning. I only mentioned google becuase I thought it'd be useful. Duplicate of stackoverflow.com/q/12059509/456188 and several others.Chris Pfohl– Chris Pfohl2013-08-20 20:42:03 +00:00Commented Aug 20, 2013 at 20:42
Add a comment
|
1 Answer
I had to do this a while ago and I had the most success with py2exe: http://www.py2exe.org/
You create a setup.py file which gives a list of what Python code you want to include in your executable, and it packages that up along with a subset of the Python interpreter into a single exe. Works specifically on Windows. (Linux and Mac generally already have Python installed so it's much less of an issue there.)