IBM Z and LinuxONE IBM Z

IBM Z

The enterprise platform for mission-critical applications brings next-level data privacy, security, and resiliency to your hybrid multicloud.

 View Only
  • 1.  Python on zOS.

    Posted Fri January 24, 2025 11:06 AM
    • Anyone share the process of installing python (IBM SDK-Python) on zOS.
    • Current machine is z15 but need to know should install the hypervisor (zVM) as first step to install Python or something its available by default on zOS.   


    ------------------------------
    Shridhar SS
    ------------------------------


  • 2.  RE: Python on zOS.

    Posted Sun January 26, 2025 01:18 AM

    There is no need for a hypervisor to be installed when you are loading a product into z/OS.  z/OS can run natively in an LPAR or as a guest operating system under z/VM.



    ------------------------------
    Samuel Cohen
    ------------------------------



  • 3.  RE: Python on zOS.

    Posted Mon January 27, 2025 04:22 AM

    Hi Sridar,

    The process of installing Python is as for any other software in z/OS: you can do using SMP/E or do a direct (non updatable install on USS). I recommend SMP/E so that you can update and maintain the software. 

    You can get more information starting from here: https://www.ibm.com/products/open-enterprise-python-zos

    Probably, you'll have to install/update the  XL C/C++ compiler as a requisite.  Python 3.11 only supports open XL C/C++ 2.4.1.

    Installing bash is not a requisite, but I recommend it a lot, it will make your life easier. 

    If you plan to work with data you'll need to install a Db2 driver and ZOAU can also help a lot in working with data files both on z/OS and USS. 

    If you plan to work with ML, data wrangling and AI, the Python for z/OS AI toolkit IBM curated packages will give you the consistency needed, as well as security in the supply chain. 

    Hope it helps.



    ------------------------------
    Diego Cardalliaguet
    IBM Data&AI zStack Leader for EMEA
    IBM
    ------------------------------



  • 4.  RE: Python on zOS.

    Posted Mon January 27, 2025 10:02 AM

    Python on z/OS is designed to operate seamlessly within the z/OS UNIX System Services (USS) environment, which serves as the runtime platform for applications requiring UNIX-like functionality. Please note include:

    • Installing z/VM is not a prerequisite for setting up Python on z/OS.
    • Python runs directly within the z/OS UNIX System Services (USS) environment.
    • z/VM is optional and required only when multiple virtual machines or isolated instances are needed.

    For additional insights, you may find this article interesting: Harnessing the Power of Python on Mainframes: A Beginner's Guide.



    ------------------------------
    Anuj Dhawan
    ------------------------------



  • 5.  RE: Python on zOS.

    Posted Wed February 05, 2025 07:46 AM

    Hi Sridar, 

    I can't answer to your message because you don't allow direct messaging. 

    This is my answer:

    Hi Sridar, 
    I don't see a clen way to reply to a meesage in this community. It would be better to answer directly to a public question. 

    1. Yes, Python goes to zIIP as Java does. More or less same conditions. 

    2. You can use Linux on Z there are several ways. I think there are some Redbooks that you can look at to better understand. 
         a) You can install Linux directly on a LPAR with no hypervisors. This is not recommended since you block the resources dedicated to that LPAR and cannot share.
         b) You can use zVM as hypervisor. No problem on that. It's being done since 2005. Like this you can have many Linux images for different purposes and share IFLs depending on the load. Good option
         c) You can use KVM as hypervisor. Similar to option b with a less powerful, but easier to manage, hypervisor. 

    Regards, 
    Diego.



    ------------------------------
    Diego Cardalliaguet
    IBM Data&AI zStack Leader for EMEA
    IBM
    ------------------------------



  • 6.  RE: Python on zOS.

    Posted Wed February 05, 2025 09:27 AM

    I've got this from Jim Elliot:

    Diego:

    Re your response 2.b): z/VM (well the original VM/370) has been around since 1972. However, if you mean for Linux then it is 1999 on VM/ESA V2, not 2005. z/VM V3 was announced in 2000 which has evolved to today's z/VM V7. I was the original product manager for IBM Americas for Linux on then S/390.

    Regards, Jim Elliott

    And he's right about the dates. But it doesn't affect the nucleus of the information on how to use the hypervisors and what the options are. 

    Thanks Jim.



    ------------------------------
    Diego Cardalliaguet
    IBM Data&AI zStack Leader for EMEA
    IBM
    ------------------------------