pyinstaller: zipimport.ZipImportError: can't find module 'encodings' 错误解决方案

2018年7月8日写:

错误问题:

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

如果你也遇到这样的问题,兴许我的方法可以解决问题。

首先你应该知道 pyinstaller支持的python版本

2.7或3.4-3.6

如果版本是符合范围,但仍旧报错。那可能就是系统兼容问题,如果你不是window10,你可以使用虚拟机安装window10编译,编译好的exe文件,可以到window7使用。

这是我成功编译好的一个例子:(一个文本编译器)

pyinstaller: zipimport.ZipImportError: can't find module 'encodings' 错误解决方案_第1张图片

你可能感兴趣的:(pyinstaller: zipimport.ZipImportError: can't find module 'encodings' 错误解决方案)