What could be the reason for fatal python error:initfsencoding:unable to load the file system codec?
What could be the reason for fatal python error:initfsencoding:unable to load the file system codec?
我正在使用 Python 3.7(64 位)并安装了 cx_Freeze 以将 .py 转换为 .exe。
我使用此命令提示符将 Python 脚本转换为可执行文件:
python [filename] build
它成功构建了可执行文件。但是当我执行我的 EXE 文件时,我只得到输出:
fatal python error:initfsencoding:unable to load the file system codec
ImportError: invalid flags 1530052318 in 'encoding'
Current thread 0X000013f8 :
如何解决并成功使用cx_Freeze制作可执行文件?
我正在使用 Python 3.7(64 位)并安装了 cx_Freeze 以将 .py 转换为 .exe。
我使用此命令提示符将 Python 脚本转换为可执行文件:
python [filename] build
它成功构建了可执行文件。但是当我执行我的 EXE 文件时,我只得到输出:
fatal python error:initfsencoding:unable to load the file system codec
ImportError: invalid flags 1530052318 in 'encoding'
Current thread 0X000013f8 :
如何解决并成功使用cx_Freeze制作可执行文件?