Skip to main content
Version: v0.66.1

Install

Requirements

H2O MLOps version >= 0.40.0 is required in order to use the MLOps Python client.

Note

All examples apart from pump_data.py can be run using Python 3.6 or later. The pump_data.py example requires Python 3.8.7 or later for the 3.8 branch and 3.9.1 or later for the 3.9 branch due to a combination of issues with Python's asyncio, aiohttp and OpenSSL modules. Other versions may work too, but they won't work reliably.

Downloading the Python client

To download the H2O MLOps Python client wheel, see the H2O MLOps downloads page.

Installing the Python client

The following steps describe how to install the H2O MLOps Python client.

  1. Navigate to the MLOPs Python client wheel location and install using pip:

    Note

    This documentation uses pip for Python package installations. Alternatively, to install packages in Python3, use pip3.

    $ pip install <PYTHON_CLIENT_WHEEL_FOR_YOUR_VERSION_OF_MLOPS_PLATFORM>
    Tip

    Creating a Python virtual environment prior to installing the Python client and other dependencies is recommended. Following steps demonstrate how you can create a Python virtual environment, and then install the MLOps Python client in that virtual environment.

    1. Navigate to the Python client wheel location.

    2. Create a Python virtual environment:

      python<VERSION> -m venv <VIRTUAL-ENVIRONMENT-NAME>
    3. Activate the created Python virtual environment:

      source <VIRTUAL-ENVIRONMENT-NAME>/bin/activate
    4. Install MLOps Python client using pip:

      ./<VIRTUAL-ENVIRONMENT-NAME>/bin/pip install <PYTHON_CLIENT_WHEEL_FOR_YOUR_VERSION_OF_MLOPS_PLATFORM>
  2. Download the requirements.txt file that is compatible with your Python version in order to install the necessary dependencies:

    Python versions 3.6 - 3.9

    Python versions 3.7 - 3.10

  1. Install dependencies from the requirements.txt file:

    $ pip install -r requirements.txt

Feedback