A bundled Python interface

For Windows 10 (Update)

Welcome to SWI-Prolog (threaded, 64 bits, version 9.1.12-14-g35822504d)
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software.
Please run ?- license. for legal details.

For online help and background, visit https://www.swi-prolog.org
For built-in help, use ?- help(Topic). or ?- apropos(Word).

?- py_version.
% Janus embeds Python 3.11.4 (tags/v3.11.4:d2340ef, Jun  7 2023, 05:45:37) [MSC v.1934 64 bit (AMD64)]
true.

What I will work on next, actually using the package.


Details for others needing to install for Windows.

Installed SWI-Prolog using build of the day.

https://www.swi-prolog.org/download/daily/bin/swipl-w64-2023-08-06.exe

Installed Python from

Python Release Python 3.11.4 | Python.org

using

python-3.11.4-amd64.exe

For first dialog of Python install wizard checked box for Add python.exe to PATH

Windows environment variable for path for users, not system variables, contains

C:\Users\Groot\AppData\Local\Programs\Python\Python311\Scripts
C:\Users\Groot\AppData\Local\Programs\Python\Python311\

To check that python works from command line.

C:\Users\Groot>where python
C:\Users\Groot\AppData\Local\Programs\Python\Python311\python.exe
C:\Users\Groot\AppData\Local\Microsoft\WindowsApps\python.exe

C:\Users\Groot>python -V
Python 3.11.4

C:\Users\Groot>python3 -V
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.

Using Windows Powershell

PS C:\Users\Groot> get-command python

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Application     python.exe                                         3.11.41... C:\Users\Groot\AppData\Local\Programs\Python\Python311\python.exe