Python packaging Method--pyinstaller (Python3)

Source: Internet
Author: User
First, install Pyinstaller using PIP command installation: Pip install Pyinstaller

Second, the use of Pyinstaller

1. Pyinstaller packaging method installed using download and installation

Place the files that need to be packaged in the extracted Pyinstaller folder, open the cmd window, switch the path to the current path, open the command prompt, and enter the following (the last file name):

  • Python pyinstaller.py-f myfile.py
2. Pyinstaller packaging method installed with Pip method

Open the cmd window, switch the path to the path where the file is located (wherever the file is placed) open a command prompt, enter the following (the last file name):

  • Pyinstaller-f myfile.py
3, the meaning of input parameters
  • -F means a single executable file is generated
  • -W indicates that the console window is removed, which is useful in GUI interfaces. But if it is a command-line program, then remove this option!
  • -P means you customize the classpath that you need to load, and you don't normally use
  • -I represents an icon for an executable file

Python packaging Method--pyinstaller (Python3)

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.