Python:报错——ModuleNotFoundError: No module named 'encodings'

运行Python报错:Fatal Python error: Py_Initialize: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'

 

处理步骤:

1.Files >>>Setting >>>Project >>>Python Interpreter  >>>Add Interpreter

 

2.选择 System Interpreter >>>提交已安装的Python路径;点击OK保存;

 3.选择已经设置好的Interpreter;Apply 即可。

 4.重新运行Python。

 

参考:https://woj.app/4365.html

posted @ 2023-11-01 18:24  coderjim  阅读(1710)  评论(0编辑  收藏  举报

更多知识请点击——

www.7017online.xyz