Skip to main content

PythonRuntimeLibrary

Specify the location of the runtime library to use when running Embedded Python.

Synopsis

[config]    PythonRuntimeLibrary=library

library is the absolute path and filename of a Python runtime library. The maximum length for PythonRuntimeLibrary is 1024 characters. By default, no library is listed.

Description

PythonRuntimeLibrary specifies the location of the Python runtime library to use when running Embedded Python.

This location will vary based on your operating system, Python version, and other factors.

Windows example: PythonRuntimeLibrary=C:\Program Files\Python311\python3.dll (Python 3.11 on Windows)

Linux example: PythonRuntimeLibrary=/usr/lib/x86_64-linux-gnu/libpython3.11.so.1.0 (Python 3.11 on Ubuntu 22.04 on the x86 architecture)

This parameter is required in order to use Embedded Python on InterSystems IRIS 2024.2 and higher on Windows. This parameter is needed on other platforms only when overriding the default version of Python.

Note:

See Flexible Python Runtime Feature for more information on configuring the version of Python to be used for Embedded Python.

See Other Supported Features for information on which platforms Flexible Python Runtime is available.

Changing This Parameter

On the Advanced Memory page of the Management Portal (System Administration > Configuration > Additional Settings > Advanced Memory), in the PythonRuntimeLibrary row, select Edit. Enter the location of the Python runtime library you want to use.

Instead of using the Management Portal, you can change PythonRuntimeLibrary in the Config.configOpens in a new tab class (as described in the class reference) or by editing the CPF in a text editor (as described in Editing the Active CPF).

When you edit this setting, it takes effect immediately. The new runtime library is used for any new processes.

FeedbackOpens in a new tab