版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_41185868/article/details/85225225
解决问题
Fatal Python error: Py_Initialize: unable to load the file system codec
Traceback (most recent call last):
File "f:\program files\python\python36\lib\encodings\__init__.py", line 31, in <module>
ModuleNotFoundError: No module named 'codecs'
ModuleNotFoundError: No module named 'codecs'
解决方法
1、先在主代码中尝试下边的代码
if not True:
import codecs
2、更新一下编译库即可!或者codecs!