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