使用pyinstaller将.py转换为.exe时,程序停止工作

时间:2018-10-04 15:47:35

标签: python python-3.x compiler-errors exe pyinstaller

当我尝试运行即使是最简单的打印“ Hello World”并使用pyinstaller将其转换为.exe的程序时,它也会返回许多此类错误。

3305 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\edoma\python\python.exe
3326 WARNING: lib not found: api-ms-win-crt-locale-l1-1-0.dll dependency of c:\users\edoma\python\python.exe
3344 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of c:\users\edoma\python\python.exe
3368 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\edoma\python\python.exe
3391 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\edoma\python\python.exe

.exe创建正确,但是当我尝试运行它时,在命令提示符下出现以下错误:

Fatal Python error: initfsencoding: unable to load the file system codec
zipimport.ZipImportError: can't find module 'encodings'

Current thread 0x00003d44 (most recent call first):

我该如何解决? 预先谢谢你

0 个答案:

没有答案