addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwchatcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrosseditemptyheartfacebookfolderfullheartglobegmailgoogleimagesinstagramlinklocation-pinmagnifying-glassmailminusmoremuplabelShape 3 + Rectangle 1outlookpersonplusprice-ribbonImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruseryahoo

question about python executable file

From: Mimi Z.
Sent on: Monday, November 14, 2011 7:31 PM

Tom, thanks a lot for your reply.  I still have one more question.  Per your suggestion, I'm posting this question to our mailing list.

For creating an executable python file, you mentioned: "Also, depending on your target, you will want to use these tools in conjunction with an installer or packaging system. For example, on Windows, you'd create your frozen python binary with py2exe and then create an installer using something like NSIS (or equivalent)."

My question is: is the installer or packaging system definitely necessary?  Is p2exe enough by itself?  What will happen if I don't create an installer or packaging system?

I'm really new in python.  Thank you all for your help.

Mimi

----------------------------------


> I wish to ask a technical question.  Would you mind me asking you?  I'm a newbie in python.  How can I make an executable file from a python script, and send it to somebody for use who does NOT have python installed on his machine?


Mimi- this is perfect material for our mailing list. For your reference, mailing to the list uses this address: [address removed]. I encourage that because, typically when one person has a question, quite a few others have the same question. Its good for our community to share this type of info among all members.

That aside, the tool to use will depend on your target OS (i.e., the OS you want the software to run on). For the "usual suspects" you can use the following:

Windows target: py2exe - http://www.py2exe.org/
Mac target: py2app - http://svn.pythonmac.org/py2app/py2app/trunk/doc/index.html
Linux/Unix target: freeze - http://wiki.python.org/moin/Freeze

Also, depending on your target, you will want to use these tools in conjunction with an installer or packaging system. For example, on Windows, you'd create your frozen python binary with py2exe and then create an installer using something like NSIS (or equivalent).

I hope the above helps. If you require more info, please do direct all future technical questions to the list -- its a benefit to everyone.

Thanks,
Tom.
 
Mimi

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy