You can read more on this website - https://discuss.python.org/t/fatal-python-error-init-fs-encoding-failed-to-get-the-python-codec-of-the-filesystem-encoding/3173/12.
I tried to install PyScripter and Delphi VCL from embarcadero make this :
python.exe
Could not find platform independent libraries <prefix>
Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH = (not set)
program name = 'python.exe'
isolated = 0
environment = 1
user site = 1
safe_path = 0
import site = 1
is in build tree = 0
stdlib dir = 'C:\Python311\Lib'
sys._base_executable = 'C:\\Users\\catafest\\AppData\\Local\\Programs\\Python\\Python311\\python.exe'
sys.base_prefix = 'C:\\Python311'
sys.base_exec_prefix = 'C:\\Python311'
sys.platlibdir = 'DLLs'
sys.executable = 'C:\\Users\\catafest\\AppData\\Local\\Programs\\Python\\Python311\\python.exe'
sys.prefix = 'C:\\Python311'
sys.exec_prefix = 'C:\\Python311'
sys.path = [
'C:\\Users\\catafest\\AppData\\Local\\Programs\\Python\\Python311\\python311.zip',
'C:\\Python311\\DLLs',
'C:\\Python311\\Lib',
'C:\\Users\\catafest\\AppData\\Local\\Programs\\Python\\Python311',
]
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'
Current thread 0x00000020 (most recent call first):
<no Python frame>