ModuleNotFoundError: No module named 'encodings'

Jason Qian jqian at tibco.com
Thu Sep 6 15:46:08 EDT 2018


Hi

Need some help.

I have a C++ application that invokes Python.

...
Py_SetPythonHome("python_path");
Py_Initialize();

This works fine on Python 3.6.4 version, but got errors on Python 3.7.0
when calling Py_Initialize(),

Fatal Python error: initfsencoding: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'


Thanks for the help
Jason



More information about the Python-list mailing list