Loading...

Installing Python on an IBM i Computer

To use Python SDK to run CommCell operations, you must install the Python software on the IBM i computer.

Prerequisites

The IBM i computer must have operating system version V7R1 or later.

Procedure

  1. Python requires Portable Application Solutions Environment (PASE) to be installed on the IBM i computer, which is available through product numbers 5770SS1 option 33 and 5733SC1.

    It is recommended by IBM that you get the latest Program Temporary Fixes (PTFs) for product number 5733SC1. For more information, go to the IBM i OpenSSH & OpenSSL Community web page and search for 5733-SC1 PTFs.

  2. Verify that the latest cumulative PTFs are installed on the IBM i computer.
  3. Install Python on the IBM i computer.
    1. Verify that you have the following IBM i installation media.
      1. 5733OPS option *BASE
      2. 5733OPS option 2 for Python 3.4
      3. 5733OPS option 3 for GCC
    2. Download the required PTFs. For more information, go to the IBM i Technology Updates web page and search for Python 3 (Option 2).
    3. Install the product numbers 5733OPS option *BASE, option 2, and option 3.
    4. Install the PTFs that you downloaded in step #3.b.
  4. Install the shipped add-ons for 5733OPS option 2. For instructions, go to the IBM i Technology Updates web page and search for New way, with wheels.
  5. Install the GCC compiler (GNU Compiler Collection) on the IBM i computer. For more information, go to the IBM i Technology Updates web page and search for pkg_setup.sh.
  6. Run the following command to test Python installation.

    python3 –-version

Result

The Python software is installed on the IBM i computer.

What to Do Next

Install the Python SDK on the IBM i computer:

  1. Install the Developer SDK - Python package on the Linux proxy computer. See Preinstallation Checklist for Developer SDK - Python on UNIX.

    When the Python SDK installation is complete, the installation program creates the Software_Installation_Directory/pythonsdk directory on the proxy computer.

  2. Run the following commands to perform an SCP or FTP operation on the entire Python SDK from the proxy computer to the IBM i computer.
    1. Send the Python SDK from the proxy computer:

      scp -r Software_Installation_Directory/pythonsdk/* qsecofr@IBMi_Host_Name:PythonSDK_Path_On_IBM_i

    2. Get the Python SDK on the IBM i computer:

      scp -r root@Software_Installation_Directory/pythonsdk/* PythonSDK_Path_On_IBM_i

  3. Go to QSH from 5250 command line or perform an SSH operation to the IBM i computer for package installation. Run the following commands from the command line:

    cd PythonSDK_Path_On_IBM_i                     /* Change current directory to Python SDK directory on IBM i computer */

    python3 setup.py install                         /* Actual install */

    cd cvcmd                                       /* Change current directory to commands directory */

  4. Test the Python SDK package to perform CommCell operations from the IBM i shell command line.

Last modified: 5/18/2018 11:42:27 AM