Glossary

Python for IBM i

Python

Python for IBM i is the open source Python runtime IBM delivers as yum installable RPM packages that run inside PASE for i, under /QOpenSys/pkgs. It is the practical place to run AI client code on the box itself, because the pieces that job needs are already Python packages: Mapepire or ODBC for Db2 for i data, and itoolkit for calling RPG and CL programs.

Delivered byIBM, as yum installable RPM packages
Where it runsPASE for i, installed under /QOpenSys/pkgs
Current buildpython3.13, at version 3.13.2
Older buildspython3 at 3.6.15 and python39 at 3.9.21

What is Python for IBM i?

It is the same Python people run on Linux, built for the side of IBM i called PASE for i. PASE stands for Portable Application Solutions Environment, the AIX runtime built into the operating system. IBM hands Python out as RPM packages you install with the yum command. Everything lands under /QOpenSys/pkgs, and you do not need the older 5733-OPS product to get it.

Which Python version should an IBM i shop use?

The three Python builds in IBM's open source repository

Package namePython versionUpstream support
python33.6.15Ended December 23, 2021
python393.9.21Ended October 31, 2025
python3.133.13.2Scheduled through October 2029

Package versions read from IBM's own open source repository on November 13, 2026. Support dates come from the Python developer guide, where a future date can still move.

A yum upgrade will not jump an installed Python to a new major version, because that would break applications already running on it. Going from python39 to python3.13 is a separate install.

How does Python reach Db2 for i data?

  • pyodbc, which goes through the IBM i Access ODBC driver. ODBC stands for Open Database Connectivity. IBM ships it as the python3.13-pyodbc RPM at version 5.2.0.
  • ibm_db, the native Db2 driver. IBM says to install the RPM and warns that pip will not work on IBM i. That RPM is built for python3 and python39 only, so a Python 3.13 project has no ibm_db package in IBM's repository.
  • Mapepire, IBM's Secure WebSockets database layer. Its Python client, mapepire-python, reached version 2.0.0 on October 28, 2026 and needs Python 3.10 or newer, so it will not run on python3 or python39.

Can Python call RPG and CL programs?

Yes. The itoolkit package wraps XMLSERVICE, so Python code can call RPG and CL programs and run system commands. IBM ships it as the python3.13-itoolkit RPM at version 1.7.2, and the same package is published on PyPI, the Python Package Index.

Why does the Python version matter for AI work?

AI work on IBM i is mostly glue code. Something has to read Db2 for i data, send it to a model, and bring the answer back. Python is a common home for that glue because the parts it needs are already Python packages. The catch is that those parts do not all support the same Python. Mapepire needs 3.10 or newer, while the ibm_db RPM stops at 3.9. Picking the build first saves rework later.

IBM's Python page in the IBM i open source documentation still lists only 3.6 and 3.9. The python3.13 packages are sitting in IBM's repository, so check the repository rather than that page when you need the current version.

Related Terms