Compress python crawlers to generate exe files,

Source: Internet
Author: User

Compress python crawlers to generate exe files,

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

2. Download and install pywin32 (note that my version is python2.7 ):
Https://pypi.python.org/pypi/pywin32

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:





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.