Fatal Python error: init_fs_encoding:

Hi, I have compiled Python manually, but now these errors:

Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named ‘encodings’

just unset PATH. It helped me. After that built python can’t see system python and runs without any issues