Building Python - linux-on-ibm-z/docs GitHub Wiki
Python versions 3.12.3 and 3.7.4 have been ported to Linux on IBM Z, and the following articles explain how to obtain and build the code:
The instructions for older versions of Python are included here for completeness: