13 Janus platforms notes
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • SWI-Prolog Python interface
        • Janus platforms notes
          • Janus on Windows
          • Janus on Linux
          • Janus on MacOS

13.1 Janus on Windows

We tested the Windows platform using SWI-Prolog binaries from https://www.swi-prolog.org/Downloads.html and Python downloaded from https://www.python.org/downloads/windows/. The SWI-Prolog binary provides janus.dll which is linked to python3.dll, a “stable API” based wrapper that each Python 3 binary distribution provides in addition to python3xx.dll. Calling Python from Prolog is supported out of the box, provided the folder holding python3.dll is in the search %PATH%.

The Python package can be installed using pip as described in section 9. Once built, this package finds SWI-Prolog on %PATH% or using the registry and should be fairly independent from the Prolog version as long as it is version 9.1.12 or later.