已解决Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
这个是因为环境变量出错了Python path configuration:PYTHONHOME = ‘/home/admin888/miniconda3/bin’PYTHONPATH = ‘KaTeX parse error: Double subscript at position 66: ….9.2-hffdb5ce_0_̲cpython/lib/pyt…PYTHONPATH’,‘/home
这个是因为环境变量出错了
Python path configuration:
PYTHONHOME = ‘/home/admin888/miniconda3/bin’
PYTHONPATH = ‘KaTeX parse error: Double subscript at position 66: ….9.2-hffdb5ce_0_̲cpython/lib/pyt…PYTHONPATH’,
‘/home/admin888/miniconda3/pkgs/python-3.9.2-hffdb5ce_0_cpython/lib/python3.9’,
‘/home/admin888/miniconda3/bin/lib/python39.zip’,
‘/home/admin888/miniconda3/bin/lib/python3.9’,
‘/home/admin888/miniconda3/bin/lib/python3.9/lib-dynload’,
]
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’
Current thread 0x00007fd2dc6444c0 (most recent call first):
解决
unset pythonpath和pythonhome就行了,但这是暂时的 也就是说修改的是bashrc
永久的是profile
参考https://blog.csdn.net/weixin_39997443/article/details/110985375
更多推荐
所有评论(0)