D:\practis\openlayers\Scripts>pyinstaller -F -w test.py
265 INFO: PyInstaller: 5.0
265 INFO: Python: 3.9.9
281 INFO: Platform: Windows-10-10.0.19044-SP0
281 INFO: wrote D:\practis\openlayers\Scripts\test.spec
328 INFO: UPX is available.
328 INFO: Extending PYTHONPATH with paths
['D:\\practis\\openlayers\\Scripts']
765 INFO: checking Analysis
781 INFO: Building because D:\practis\openlayers\Scripts\test.py changed
781 INFO: Initializing module dependency graph...
781 INFO: Caching module graph hooks...
796 INFO: Analyzing base_library.zip ...
3155 INFO: Processing pre-find module path hook distutils from 'D:\\practis\\openlayers\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-distutils.py'.
3155 INFO: distutils: retargeting to non-venv dir 'C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\\lib'
4514 INFO: Caching module dependency graph...
4670 INFO: running Analysis Analysis-00.toc
4670 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
required by C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\python.exe
4858 INFO: Analyzing D:\practis\openlayers\Scripts\test.py
4858 INFO: Processing module hooks...
4858 INFO: Loading module hook 'hook-difflib.py' from 'D:\\practis\\openlayers\\lib\\site-packages\\PyInstaller\\hooks'...
4858 INFO: Loading module hook 'hook-distutils.py' from 'D:\\practis\\openlayers\\lib\\site-packages\\PyInstaller\\hooks'...
4858 INFO: Loading module hook 'hook-encodings.py' from 'D:\\practis\\openlayers\\lib\\site-packages\\PyInstaller\\hooks'...
5076 INFO: Loading module hook 'hook-heapq.py' from 'D:\\practis\\openlayers\\lib\\site-packages\\PyInstaller\\hooks'...
5076 INFO: Loading module hook 'hook-multiprocessing.util.py' from 'D:\\practis\\openlayers\\lib\\site-packages\\PyInstaller\\hooks'...
5076 INFO: Loading module hook 'hook-pickle.py' from 'D:\\practis\\openlayers\\lib\\site-packages\\PyInstaller\\hooks'...
5076 INFO: Loading module hook 'hook-sysconfig.py' from 'D:\\practis\\openlayers\\lib\\site-packages\\PyInstaller\\hooks'...
5076 INFO: Loading module hook 'hook-xml.py' from 'D:\\practis\\openlayers\\lib\\site-packages\\PyInstaller\\hooks'...
5248 INFO: Loading module hook 'hook-_tkinter.py' from 'D:\\practis\\openlayers\\lib\\site-packages\\PyInstaller\\hooks'...
5592 INFO: checking Tree
5764 INFO: checking Tree
5982 INFO: checking Tree
6014 INFO: Looking for ctypes DLLs
6014 INFO: Analyzing run-time hooks ...
6014 INFO: Including run-time hook 'D:\\practis\\openlayers\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_subprocess.py'
6014 INFO: Including run-time hook 'D:\\practis\\openlayers\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_pkgutil.py'
6014 INFO: Including run-time hook 'D:\\practis\\openlayers\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_inspect.py'
6014 INFO: Including run-time hook 'D:\\practis\\openlayers\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_multiprocessing.py'
6014 INFO: Including run-time hook 'D:\\practis\\openlayers\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth__tkinter.py'
6029 INFO: Looking for dynamic libraries
7324 INFO: Looking for eggs
7324 INFO: Using Python library C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\python39.dll
7324 INFO: Found binding redirects:
[]
7339 INFO: Warnings written to D:\practis\openlayers\Scripts\build\test\warn-test.txt
7355 INFO: Graph cross-reference written to D:\practis\openlayers\Scripts\build\test\xref-test.html
7386 INFO: checking PYZ
7402 INFO: Building because toc changed
7402 INFO: Building PYZ (ZlibArchive) D:\practis\openlayers\Scripts\build\test\PYZ-00.pyz
7917 INFO: Building PYZ (ZlibArchive) D:\practis\openlayers\Scripts\build\test\PYZ-00.pyz completed successfully.
7933 INFO: checking PKG
7933 INFO: Building PKG because PKG-00.toc is non existent
7933 INFO: Building PKG (CArchive) test.pkg
7964 INFO: Executing - upx--lzma-qC:\Users\HASEE\AppData\Local\pyinstaller\bincache01_py39_64bit\python39.dll
The subprocess:
upx--lzma-qC:\Users\HASEE\AppData\Local\pyinstaller\bincache01_py39_64bit\python39.dll
exited with error 1 and error output:
Ultimate Packer for eXecutables
Copyright (C) 1996 - 2020
UPX 3.96w Markus Oberhumer, Laszlo Molnar & John Reiser Jan 23rd 2020
File size Ratio Format Name
-------------------- ------ ----------- -----------
upx: C:\Users\HASEE\AppData\Local\pyinstaller\bincache01_py39_64bit\python39.dll: FileNotFoundException: C:\Users\HASEE\AppData\Local\pyinstaller\bincache01_py39_64bit\python39.dll: No such file or directory
Packed 0 files.
D:\practis\openlayers\Scripts>
倒数第三行,找不到py39.dll