PySwip

PS C:\Users\DELL> py
Python 3.12.3 (tags/v3.12.3:f6650f9, Apr  9 2024, 14:05:25) [MSC v.1938 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from pyswip import Prolog
SWI-Prolog: [FATAL ERROR: at Thu Aug 15 12:43:17 2024
        Could not find system resources]

my prolog:
SWI-Prolog (threaded, 64 bits, version 9.2.6), * [Stable release]
and
swipl executable is already on the PATH
How can i fix the bug?

Did you copy libswipl.dll to somewhere else? It says it cannot find its home directory. Normally, on Windows, it finds this relative to the location of libswipl.dll.

You can also set SWI_HOME_DIR to point at the installation, typically C:\Program Files\swipl