加入收藏 | 设为首页 | 会员中心 | 我要投稿 安卓应用网 (https://www.0791zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Python > 正文

Pyinstaller在python 3.7中不起作用(找不到模块’编码’)

发布时间:2020-05-23 14:49:45 所属栏目:Python 来源:互联网
导读:我有下面的测试程序 - 我用pyinstaller编译代码(Python ver 3.7b.windows 10 - 64bit)在编译和错误期间注意到警告.我很感激有任何解决这个问题的见解.Test.py import encodings print(Test) 汇编警告样本 102 INFO: PyInstaller: 3.3.1 102

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

Test.py
import encodings
print('Test')

汇编警告样本

102 INFO: PyInstaller: 3.3.1
102 INFO: Python: 3.7.0b1
104 INFO: Platform: Windows-10-10.0.14393-SP0
2771 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of c:appspythonpython37python.exe
2801 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:appspythonpython37python.exe

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:
找不到模块’编码’).

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

(编辑:安卓应用网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读