[Python] [Small knowledge] [No.5] packaged as an. exe file using Pyinstaller

Source: Internet
Author: User
Tags python script
1. Install Pyinstaller plug-in

CMD command: Pip install Pyinstaller

Ps. O.o don't know Easy_install Baidu Bar.

2, Pyinstaller Introduction

He can easily help me to package the Python script into an. exe program.

CMD package directive: Pyinstaller [Some parameters] [package the path of the. Py Script]

After packaging, two folders will be generated in the user directory (where the finished product is packaged under the build folder):

    

1, when we do not give any parameters when:

The packaged result is a folder:

The folder has many dependent files such as DLLs

And is run with a command-line window.

    

2.-W Instruction (lowercase w)

Package and run without a command-line window

3.-F Instruction (uppercase F)

Packaged as a standalone. exe file, with various dependency packages such as DLLs

3. Packing

A separate. exe file.

  

  

4, after the statement

O.o feel that no matter what language to develop things, all want to get him into the. exe file to play ...

Reprint please indicate the source ('? ') ): http://www.cnblogs.com/Twobox/

2017-08-30 12:58:18

[Python] [Small knowledge] [No.5] packaged as an. exe file using 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.