我使用编译我的python项目Nuitka
并将其发送给朋友进行测试,看看它是否在他的电脑上运行,他得到了这个错误。该可执行文件似乎在我的电脑上运行良好。
这是我用来编译代码的python -m nuitka --follow-imports --mingw64 menu.py
错误:
Python path configuration:
PYTHONHOME = 'C:\Python39' PYTHONPATH = (not set) program name = 'python' isolated = 0 environment = 1
user site = 1 import site = 0 sys._base_executable =
'C:\Users\kaiko\OneDrive\Desktop\Cheema\menu.exe' sys.base_prefix
= 'C:\Python39' sys.base_exec_prefix = 'C:\Python39' sys.platlibdir = 'lib' sys.executable =
'C:\Users\kaiko\OneDrive\Desktop\Cheema\menu.exe' sys.prefix =
'C:\Python39' sys.exec_prefix = 'C:\Python39' sys.path = [
'C:\Users\kaiko\OneDrive\Desktop\Cheema\python39.zip',
'C:\Python39\DLLs',
'C:\Python39\lib',
'C:\Users\kaiko\OneDrive\Desktop\Cheema', ] Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem
encoding Python runtime state: core initialized ModuleNotFoundError:
No module named 'encodings'