Introduction to Python Five: packaged exe release __python

Source: Internet
Author: User

1. Installation Pyinstaller
DOS command line input: py-m pip install Pyinstaller, install Pyinstaller



2. Packing

In the production of EXE file directory input pyinstaller-w *.py, you can make an EXE. The generated files are placed under the same directory Dist.
-F (note capitalization) is that all library files are packaged into a exe,-w that do not come out of the Black console window.
Generate a bunch of files without the-f argument, but run fast. Compressed after a little bit more than a single EXE file.

Add-f parameter to generate an EXE file, run slowly.

3, will pyinstaller join Pycharm

-W $FileName $

$FileDir $



-----------------------------------------------------------------------------

1. Installation exception


Resolve manual Installation

Open URL: https://www.lfd.uci.edu/~gohlke/pythonlibs/

Searching for Pyinstaller in a Web page will find: PYINSTALLER‑3.3.1‑PY2.PY3‑NONE‑ANY.WHL, this is a pervasive version.

Open cmd, switch to download path, pip install PYINSTALLER-3.3.1-PY2.PY3-NONE-ANY.WHL


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.