您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

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

5b51 2022/1/14 8:21:36 python 字数 2046 阅读 516 来源 www.jb51.cc/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:\apps\python\python37\python.exe
2801 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\apps\python\python37\python.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):

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

总结

以上是编程之家为你收集整理的Pyinstaller在python 3.7中不起作用(找不到模块’编码’)全部内容,希望文章能够帮你解决Pyinstaller在python 3.7中不起作用(找不到模块’编码’)所遇到的程序开发问题。


如果您也喜欢它,动动您的小指点个赞吧

除非注明,文章均由 laddyq.com 整理发布,欢迎转载。

转载请注明:
链接:http://laddyq.com
来源:laddyq.com
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。


联系我
置顶