pyinstaller打包Python脚本生成exe文件

D:\code\python>pyinstaller -F undup.py
179 INFO: PyInstaller: 3.5
179 INFO: Python: 3.7.4
180 INFO: Platform: Windows-7-6.1.7601-SP1
182 INFO: wrote D:\code\python\undup.spec
188 INFO: UPX is not available.
191 INFO: Extending PYTHONPATH with paths
['D:\\code\\python', 'D:\\code\\python']
192 INFO: checking Analysis
196 INFO: Building because D:\code\python\undup.py changed
196 INFO: Initializing module dependency graph...
210 INFO: Initializing module graph hooks...
215 INFO: Analyzing base_library.zip ...
5363 INFO: running Analysis Analysis-00.toc
5368 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of f
inal executable
  required by c:\program files\python\python37\python.exe
5932 INFO: Caching module hooks...
5942 INFO: Analyzing D:\code\python\undup.py
6048 INFO: Loading module hooks...
6049 INFO: Loading module hook "hook-encodings.py"...
6296 INFO: Loading module hook "hook-pydoc.py"...
6298 INFO: Loading module hook "hook-xml.py"...
6686 INFO: Looking for ctypes DLLs
6700 INFO: Analyzing run-time hooks ...
6713 INFO: Looking for dynamic libraries
7032 INFO: Looking for eggs
7032 INFO: Using Python library c:\program files\python\python37\python37.dll
7032 INFO: Found binding redirects:
[]
7038 INFO: Warnings written to D:\code\python\build\undup\warn-undup.txt
7086 INFO: Graph cross-reference written to D:\code\python\build\undup\xref-undu
p.html
7099 INFO: checking PYZ
7101 INFO: Building because toc changed
7102 INFO: Building PYZ (ZlibArchive) D:\code\python\build\undup\PYZ-00.pyz
7692 INFO: Building PYZ (ZlibArchive) D:\code\python\build\undup\PYZ-00.pyz comp
leted successfully.
7704 INFO: checking PKG
7706 INFO: Building because toc changed
7707 INFO: Building PKG (CArchive) PKG-00.pkg
10291 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
10295 INFO: Bootloader C:\Users\Administrator\AppData\Roaming\Python\Python37\si
te-packages\PyInstaller\bootloader\Windows-64bit\run.exe
10295 INFO: checking EXE
10299 INFO: Building because toc changed
10300 INFO: Building EXE from EXE-00.toc
10303 INFO: Appending archive to EXE D:\code\python\dist\undup.exe
10312 INFO: Building EXE from EXE-00.toc completed successfully.

D:\code\python>cd dist

D:\code\python\dist>undup.exe
Please set output file
 

你可能感兴趣的:(pyinstaller打包Python脚本生成exe文件)