Python packaged as EXE: cxfreeze!

Source: Internet
Author: User

Python with cxfreeze packaging, not like what Pyinstaller Miscellaneous write configuration file, a line of command enough!

After installing the Cxfreeze, the Python script directory is executed:

C:\python27\scripts>cxfreeze D:\pyworkspace\gui\Layout_try1.py--target-dir D:\pyworkspace\gui\--base-name= Win32gui--icon D:\pyworkspace\gui\dd.ico

The library that layout_try1.py relies on is automatically included.

Note: layout_try1.py, remove if __name__== ' __main__ '

As for the other people on the Internet, what directory can not have Chinese, source files can not have Chinese, these are the words of the egg. The pro-test does not affect.

Icon icons cannot be too large. In the example, icon=67kb is wrong

Python packaged as EXE: cxfreeze!

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.