简体   繁体   中英

How to install py2app

I have been coding with Python for a couple moths now and I have come across the stage where I want to turn my python scripts into stand alone programs. I am running Python 3.4 and default Python 2.7 that was pre installed on my mac. I am running os x 10.9.5. I have heard about a tool called py2app but i have no idea how to install it and use it. I have seen many other tutorials but they are useless; 1. most of them are windows based 2. they are not related to my problem. A detailed answer with step by step instructions on how to install and use py2app would be great. Thanks

From the Officail Installation page :

Open your Mac Terminal
To install py2app using easy_install you must make sure you have a recent version of distribute installed (as of this writing, 0.6b4 or later):

$ curl -O http://python-distribute.org/distribute_setup.py
$ python ez_setup.py -U distribute

To install or upgrade to the latest released version of py2app:

$ easy_install -U py2app

If you install into a system installation of Python you might need additional privileges, you can use the sudo commando to get those:

$ sudo easy_install -U py2app

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM