Mac pack Python3 into app

Source: Internet
Author: User

Note: All operations are best switched to the directory where the code is located

1. Installing Py2app

PIP3 Install Py2app

2. Generating the setup file

Py2applet--make-setup xxx.py

3. Packaging

#自己开发, packaging is fast. (Because the machine has a dependent library installed, it can be run directly)

Python setup.py py2app-a

#给其他没有sdk的电脑使用, including Lib library. (The computer that does not have the SDK installed, need to remove-A, all dependencies will be packaged.) )

Python setup.py Py2app

Mac pack Python3 into app

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.