本文介绍了Pyinstaller 在 python 3.7 中不起作用(找不到模块“编码")的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有下面的测试程序 - 我用 pyinstaller (Python ver 3.7b. windows 10 - 64bit) 编译了代码,在编译和错误期间注意到警告.我将不胜感激任何解决此问题的见解.

I have test program below - I compiled the code with pyinstaller (Python ver 3.7b. windows 10 - 64bit) noticed warnings during compilations and error. I would appreciate any insight to resolving this issue.

Test.py
import encodings
print('Test')

编译警告示例

102 信息:PyInstaller:3.3.1
102 信息:Python:3.7.0b1
104 信息:平台:Windows-10-10.0.14393-SP0
2771 警告:找不到 lib:c:\apps\python\python37\python.exe
的 api-ms-win-crt-math-l1-1-0.dll 依赖项2801 警告:找不到 lib:c:\apps\python\python37\python.exe 的 api-ms-win-crt-stdio-l1-1-0.dll 依赖项

错误 - 执行程序致命的 Python 错误:initfsencoding:
无法加载文件系统编解码器zipimport.ZipImportError:
找不到模块编码"当前线程 0x0000289c(最近调用优先):

Error - executing the program Fatal Python error: initfsencoding:
unable to load the file system codec zipimport.ZipImportError:
can't find module 'encodings' Current thread 0x0000289c (most recent call first):

推荐答案

我有同样的错误 (zipimport.ZipImportError:找不到模块编码").

I have the same error (zipimport.ZipImportError:can't find module 'encodings').

我认为这与 Python 3.7 尚不支持 pyinstaller 有关...

I think it has to do with Python 3.7 not supporting pyinstaller yet...

这篇关于Pyinstaller 在 python 3.7 中不起作用(找不到模块“编码")的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 21:30