使用pip命令安装pyinstaller后打包失败,按命令更新版本后重新试了一次,结果出现了以下问题:
769 INFO: PyInstaller: 3.4
770 INFO: Python: 3.7.2
770 INFO: Platform: Windows-10-10.0.17134-SP0
774 INFO: wrote D:\koch\koch.spec
777 INFO: UPX is not available.
780 INFO: Extending PYTHONPATH with paths
['D:\\koch', 'D:\\koch']
781 INFO: checking Analysis
781 INFO: Building Analysis because Analysis-00.toc is non existent
782 INFO: Initializing module dependency graph...
786 INFO: Initializing module graph hooks...
820 INFO: Analyzing base_library.zip ...
8351 INFO: running Analysis Analysis-00.toc
8393 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
required by D:\程序包\python\python.exe
8437 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of D:\程序包\python\python.exe
8506 WARNING: lib not found: api-ms-win-crt-locale-l1-1-0.dll dependency of D:\程序包\python\python.exe
8538 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of D:\程序包\python\python.exe
8604 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of D:\程序包\python\python.exe
8631 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of D:\程序包\python\python.exe
8803 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of D:\程序包\python\python37.dll
8872 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of D:\程序包\python\python37.dll
8898 WARNING: lib not found: api-ms-win-crt-filesystem-l1-1-0.dll dependency of D:\程序包\python\python37.dll
8923 WARNING: lib not found: api-ms-win-crt-process-l1-1-0.dll dependency of D:\程序包\python\python37.dll
8966 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of D:\程序包\python\python37.dll
8990 WARNING: lib not found: api-ms-win-crt-conio-l1-1-0.dll dependency of D:\程序包\python\python37.dll
9029 WARNING: lib not found: api-ms-win-crt-environment-l1-1-0.dll dependency of D:\程序包\python\python37.dll
9054 WARNING: lib not found: api-ms-win-crt-locale-l1-1-0.dll dependency of D:\程序包\python\python37.dll
9080 WARNING: lib not found: api-ms-win-crt-time-l1-1-0.dll dependency of D:\程序包\python\python37.dll
9105 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of D:\程序包\python\python37.dll
9153 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of D:\程序包\python\python37.dll
9178 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of D:\程序包\python\python37.dll
9222 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of D:\程序包\python\VCRUNTIME140.dll
9248 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of D:\程序包\python\VCRUNTIME140.dll
9271 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of D:\程序包\python\VCRUNTIME140.dll
9296 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of D:\程序包\python\VCRUNTIME140.dll
9322 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of D:\程序包\python\VCRUNTIME140.dll
9325 INFO: Caching module hooks...
9364 INFO: Analyzing D:\koch\koch.py
9726 INFO: Loading module hooks...
9727 INFO: Loading module hook "hook-encodings.py"...
9879 INFO: Loading module hook "hook-pydoc.py"...
9901 INFO: Loading module hook "hook-xml.py"...
10266 INFO: Loading module hook "hook-_tkinter.py"...
10345 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of D:\程序包\python\DLLs\_tkinter.pyd
10384 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of D:\程序包\python\DLLs\_tkinter.pyd
10421 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of D:\程序包\python\DLLs\_tkinter.pyd
10612 INFO: checking Tree
10612 INFO: Building Tree because Tree-00.toc is non existent
10613 INFO: Building Tree Tree-00.toc
11201 INFO: checking Tree
11201 INFO: Building Tree because Tree-01.toc is non existent
11202 INFO: Building Tree Tree-01.toc
11345 INFO: Looking for ctypes DLLs
11346 INFO: Analyzing run-time hooks ...
11353 INFO: Including run-time hook 'pyi_rth__tkinter.py'
11419 INFO: Looking for dynamic libraries
11515 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of D:\程序包\python\DLLs\_ssl.pyd
11571 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of D:\程序包\python\DLLs\_ssl.pyd
11603 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of D:\程序包\python\DLLs\_ssl.pyd
11719 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of D:\程序包\python\DLLs\unicodedata.pyd
11753 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of D:\程序包\python\DLLs\unicodedata.pyd
11781 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of D:\程序包\python\DLLs\unicodedata.pyd
11815 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of D:\程序包\python\DLLs\pyexpat.pyd
11840 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of D:\程序包\python\DLLs\pyexpat.pyd
11866 WARNING: lib not found: api-ms-win-crt-environment-l1-1-0.dll dependency of D:\程序包\python\DLLs\pyexpat.pyd
11890 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of D:\程序包\python\DLLs\pyexpat.pyd
11918 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of D:\程序包\python\DLLs\pyexpat.pyd
11955 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of D:\程序包\python\DLLs\_hashlib.pyd
11998 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of D:\程序包\python\DLLs\_bz2.pyd
12022 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of D:\程序包\python\DLLs\_bz2.pyd
12047 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of D:\程序包\python\DLLs\_bz2.pyd
12076 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of D:\程序包\python\DLLs\_bz2.pyd
12100 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of D:\程序包\python\DLLs\_bz2.pyd
12138 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of D:\程序包\python\DLLs\_lzma.pyd
12166 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of D:\程序包\python\DLLs\_lzma.pyd
12209 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of D:\程序包\python\DLLs\_socket.pyd
12234 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of D:\程序包\python\DLLs\_socket.pyd
12274 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of D:\程序包\python\DLLs\select.pyd
12305 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of D:\程序包\python\DLLs\_tkinter.pyd
12332 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of D:\程序包\python\DLLs\_tkinter.pyd
12360 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of D:\程序包\python\DLLs\_tkinter.pyd
12394 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of D:\程序包\python\DLLs\libssl-1_1-x64.dll
12418 WARNING: lib not found: api-ms-win-crt-time-l1-1-0.dll dependency of D:\程序包\python\DLLs\libssl-1_1-x64.dll
12443 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of D:\程序包\python\DLLs\libssl-1_1-x64.dll
12472 WARNING: lib not found: api-ms-win-crt-utility-l1-1-0.dll dependency of D:\程序包\python\DLLs\libssl-1_1-x64.dll
12549 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of D:\程序包\python\DLLs\libcrypto-1_1-x64.dll
12604 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of D:\程序包\python\DLLs\libcrypto-1_1-x64.dll
12633 WARNING: lib not found: api-ms-win-crt-filesystem-l1-1-0.dll dependency of D:\程序包\python\DLLs\libcrypto-1_1-x64.dll
12672 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of D:\程序包\python\DLLs\libcrypto-1_1-x64.dll
12698 WARNING: lib not found: api-ms-win-crt-environment-l1-1-0.dll dependency of D:\程序包\python\DLLs\libcrypto-1_1-x64.dll
12721 WARNING: lib not found: api-ms-win-crt-time-l1-1-0.dll dependency of D:\程序包\python\DLLs\libcrypto-1_1-x64.dll
12747 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of D:\程序包\python\DLLs\libcrypto-1_1-x64.dll
12773 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of D:\程序包\python\DLLs\libcrypto-1_1-x64.dll
12797 WARNING: lib not found: api-ms-win-crt-utility-l1-1-0.dll dependency of D:\程序包\python\DLLs\libcrypto-1_1-x64.dll
12853 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of D:\程序包\python\DLLs\tk86t.dll
12881 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of D:\程序包\python\DLLs\tk86t.dll
12903 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of D:\程序包\python\DLLs\tk86t.dll
12929 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of D:\程序包\python\DLLs\tk86t.dll
12953 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of D:\程序包\python\DLLs\tk86t.dll
13067 WARNING: lib not found: api-ms-win-crt-time-l1-1-0.dll dependency of D:\程序包\python\DLLs\tk86t.dll
13094 WARNING: lib not found: api-ms-win-crt-utility-l1-1-0.dll dependency of D:\程序包\python\DLLs\tk86t.dll
13129 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of D:\程序包\python\DLLs\tk86t.dll
13199 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of D:\程序包\python\DLLs\tcl86t.dll
13227 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of D:\程序包\python\DLLs\tcl86t.dll
13259 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of D:\程序包\python\DLLs\tcl86t.dll
13292 WARNING: lib not found: api-ms-win-crt-environment-l1-1-0.dll dependency of D:\程序包\python\DLLs\tcl86t.dll
13333 WARNING: lib not found: api-ms-win-crt-time-l1-1-0.dll dependency of D:\程序包\python\DLLs\tcl86t.dll
13374 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of D:\程序包\python\DLLs\tcl86t.dll
13400 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of D:\程序包\python\DLLs\tcl86t.dll
13424 WARNING: lib not found: api-ms-win-crt-utility-l1-1-0.dll dependency of D:\程序包\python\DLLs\tcl86t.dll
13448 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of D:\程序包\python\DLLs\tcl86t.dll
13448 INFO: Looking for eggs
13449 INFO: Using Python library D:\程序包\python\python37.dll
13452 INFO: Found binding redirects:
[]
13456 INFO: Warnings written to D:\koch\build\koch\warn-koch.txt
13498 INFO: Graph cross-reference written to D:\koch\build\koch\xref-koch.html
13550 INFO: checking PYZ
13551 INFO: Building PYZ because PYZ-00.toc is non existent
13552 INFO: Building PYZ (ZlibArchive) D:\koch\build\koch\PYZ-00.pyz
14282 INFO: Building PYZ (ZlibArchive) D:\koch\build\koch\PYZ-00.pyz completed successfully.
14291 INFO: checking PKG
14292 INFO: Building PKG because PKG-00.toc is non existent
14293 INFO: Building PKG (CArchive) PKG-00.pkg
17822 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
17849 INFO: Bootloader D:\程序包\python\lib\site-packages\PyInstaller\bootloader\Windows-64bit\run.exe
17849 INFO: checking EXE
17851 INFO: Building EXE because EXE-00.toc is non existent
17853 INFO: Building EXE from EXE-00.toc
17871 INFO: SRCPATH [('koch.ico', None)]
17871 INFO: Updating icons from ['koch.ico'] to C:\Users\Ryan\AppData\Local\Temp\tmph7rlzz7g
17930 INFO: Writing RT_GROUP_ICON 0 resource with 76 bytes
17930 INFO: Writing RT_ICON 1 resource with 270376 bytes
17932 INFO: Writing RT_ICON 2 resource with 67624 bytes
17935 INFO: Writing RT_ICON 3 resource with 9640 bytes
17936 INFO: Writing RT_ICON 4 resource with 4264 bytes
17937 INFO: Writing RT_ICON 5 resource with 1128 bytes
17949 INFO: Appending archive to EXE D:\koch\dist\koch.exe
17969 INFO: Building EXE from EXE-00.toc completed successfully.