Install
Requirements
H2O MLOps version >= 0.40.0
is required in order to use the MLOps Python client.
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.
Navigate to the MLOPs Python client wheel location and install using pip:
NoteThis documentation uses
pip
for Python package installations. Alternatively, to install packages in Python3, usepip3
.$ pip install <PYTHON_CLIENT_WHEEL_FOR_YOUR_VERSION_OF_MLOPS_PLATFORM>
TipCreating 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.
Navigate to the Python client wheel location.
Create a Python virtual environment:
python<VERSION> -m venv <VIRTUAL-ENVIRONMENT-NAME>
Activate the created Python virtual environment:
source <VIRTUAL-ENVIRONMENT-NAME>/bin/activate
Install MLOps Python client using pip:
./<VIRTUAL-ENVIRONMENT-NAME>/bin/pip install <PYTHON_CLIENT_WHEEL_FOR_YOUR_VERSION_OF_MLOPS_PLATFORM>
Download the
requirements.txt
file that is compatible with your Python version in order to install the necessary dependencies:
Install dependencies from the
requirements.txt
file:$ pip install -r requirements.txt
- Submit and view feedback for this page
- Send feedback about H2O MLOps to cloud-feedback@h2o.ai