美文网首页
pyinstaller: zipimport.ZipImport

pyinstaller: zipimport.ZipImport

作者: 欧薇娅 | 来源:发表于2018-07-08 12:16 被阅读560次

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.ZipImport

      本文链接:https://www.haomeiwen.com/subject/mxhouftx.html