diff --git a/Python/codecs.c b/Python/codecs.c index 2cb3875db350588..91799cf22434fa4 100644 --- a/Python/codecs.c +++ b/Python/codecs.c @@ -1526,7 +1526,7 @@ _PyCodec_InitRegistry(PyInterpreterState *interp) // search functions, so this is done after everything else is initialized. PyObject *mod = PyImport_ImportModule("encodings"); if (mod == NULL) { - return PyStatus_Error("Failed to import encodings module"); + return PyStatus_Error("Failed to import encodings module. Are you sure PYTHONHOME is correct?"); } Py_DECREF(mod);