Python's way to make EXE executables---use Pyinstaller

Source: Internet
Author: User

Python's way to make EXE executables---use Pyinstaller python to generate an executable program in the Windows EXE format with three options: Py2exe is well known, today to introduce Pyinstaller, this tool is available on a full platform. I used Python to make a utility for my company colleagues, and since the company has a lot of Windows with Mac Linux, it has been used to make the program executable, compatible, It just makes the program slow to start on the Linux platform and the Mac platform (Windows is still faster), but it's basically enough.  After installing the Pyinstaller, you can start.           1. Method of generating an executable file using Pyinstaller 1.1 set the dependent files to a folder: pyinstaller-d-W main.py #把main. Py to your main portal Python file.    The-w parameter represents main.py as a form program. 1.2 Package all dependent files into the same executable: Pyinstaller-f-W main.py 2. Investigate the loading process of the Pyinstaller generator by using the following command, you can get the runtime tracking, tracing, lo     Ader the loading process. PYINSTALLER-FWD aui.py #把aui. py to the file you need to detect.

Python's way to make EXE executables---use Pyinstaller

Related Article

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.