CrowPi2启动显示Fatal Python error,该如何修复?
启动CrowPi2笔记本时Python初始化错误问题解决
每次启动CrowPi2笔记本,终端都会输出以下错误信息:
Could not find platform independent libraries <prefix> Could not find platform dependent libraries <exec_prefix> Python path configuration: PYTHONHOME = (not set) PYTHONPATH = (not set) program name = 'python' isolated = 0 environment = 1 user site = 1 safe_path = 0 import site = 1 is in build tree = 0 stdlib dir = '/usr/local/lib/python3.12' sys._base_executable = '/usr/bin/python' sys.base_prefix = '/usr/local' sys.base_exec_prefix = '/usr/local' sys.platlibdir = 'lib' sys.executable = '/usr/bin/python' sys.prefix = '/usr/local' sys.exec_prefix = '/usr/local' sys.path = [ '/usr/local/lib/python312.zip', '/usr/local/lib/python3.12', '/usr/local/lib/python3.12/lib-dynload', ] Fatal Python error: init_fs_encoding: failed to get the Python codec for the filesystem encoding Python runtime state: core initialized ModuleNotFoundError: No module named 'encodings' Current thread 0xb6faa010 (most recent call first): <no Python frame>
已尝试以下操作,均未解决问题:
- 重装Python
- 配置环境变量
曾考虑通过重装系统解决,起初不确定是否可行,最终重装系统已解决该问题。
内容的提问来源于stack exchange,提问作者Justin Bachmann
相关产品推荐
相关产品推荐

