[Python] project packaging: PACK The py file into an EXE file in step 5

Source: Internet
Author: User

1. Download and decompress pyinstaller (you can download the latest version from the official website ):

Http://nchc.dl.sourceforge.net/project/pyinstaller/2.0/pyinstaller-2.0.zip


2. Download and install pywin32 (note that my version is python2.7 ):

Http://download.csdn.net/download/lanlandechong/4367925


3. Put the project file under the pyinstaller folder (my name is Baidu. py ):



4. Press shift and right-click, open the command prompt line in the current path, and enter the following content (the last is the file name ):

Python pyinstaller. py-F Baidu. py


5. Run the generated EXE file in the DIST folder under the Baidu folder by double-clicking:



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.