1. 程式人生 > >Python 編寫windows守護程序程式

Python 編寫windows守護程序程式

E:\mywork\python\workspace\monitor>pyinstaller -w DemoServer.py
87 INFO: PyInstaller: 3.2.1
90 INFO: Python: 3.5.4
90 INFO: Platform: Windows-10-10.0.15063-SP0
93 INFO: wrote E:\mywork\python\workspace\monitor\DemoServer.spec
99 INFO: UPX is not available.
101 INFO: Extending PYTHONPATH with paths
['E:\\mywork\\python\\workspace\\monitor',
 'E:\\mywork\\python\\workspace\\monitor']
101 INFO: checking Analysis
101 INFO: Building Analysis because out00-Analysis.toc is non existent
102 INFO: Initializing module dependency graph...
103 INFO: Initializing module graph hooks...
104 INFO: Analyzing base_library.zip ...
2195 INFO: running Analysis out00-Analysis.toc
2196 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
  required by e:\mywork\python\soft\python35\python.exe
2595 INFO: Caching module hooks...
2598 INFO: Analyzing E:\mywork\python\workspace\monitor\DemoServer.py
2825 INFO: Loading module hooks...
2826 INFO: Loading module hook "hook-encodings.py"...
2912 INFO: Loading module hook "hook-xml.py"...
3057 INFO: Loading module hook "hook-pywintypes.py"...
3288 INFO: Loading module hook "hook-pydoc.py"...
3304 INFO: Looking for ctypes DLLs
3304 INFO: Analyzing run-time hooks ...
3310 INFO: Looking for dynamic libraries
3556 INFO: Looking for eggs
3556 INFO: Using Python library e:\mywork\python\soft\python35\python35.dll
3556 INFO: Found binding redirects:
[]
3560 INFO: Warnings written to E:\mywork\python\workspace\monitor\build\DemoServer\warnDemoServer.txt
3568 INFO: checking PYZ
3568 INFO: Building PYZ because out00-PYZ.toc is non existent
3568 INFO: Building PYZ (ZlibArchive) E:\mywork\python\workspace\monitor\build\DemoServer\out00-PYZ.pyz
3993 INFO: Building PYZ (ZlibArchive) E:\mywork\python\workspace\monitor\build\DemoServer\out00-PYZ.pyz completed successfully.
4009 INFO: checking PKG
4011 INFO: Building PKG because out00-PKG.toc is non existent
4012 INFO: Building PKG (CArchive) out00-PKG.pkg
4025 INFO: Building PKG (CArchive) out00-PKG.pkg completed successfully.
4028 INFO: Bootloader e:\mywork\python\soft\python35\lib\site-packages\PyInstaller\bootloader\Windows-64bit\runw.exe
4028 INFO: checking EXE
4028 INFO: Building EXE because out00-EXE.toc is non existent
4028 INFO: Building EXE from out00-EXE.toc
4029 INFO: Appending archive to EXE E:\mywork\python\workspace\monitor\build\DemoServer\DemoServer.exe
4031 INFO: Building EXE from out00-EXE.toc completed successfully.
4036 INFO: checking COLLECT
4036 INFO: Building COLLECT because out00-COLLECT.toc is non existent
4039 INFO: Building COLLECT out00-COLLECT.toc
4378 INFO: Building COLLECT out00-COLLECT.toc completed successfully.