Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding

Hello and welcome :slight_smile:

This is not a Python bug, this is a symptom of setting PYTHONHOME and/or PYTHONPATH when they’re not needed. In nearly all cases you don’t need to set either of them; in the case of PYTHONHOME it’s almost always a mistake to set.

Is there a particular reason you’re trying to set these variables? Are you following a guide that suggests it?

1 Like