这个是因为环境变量出错了
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

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐