I created the following environment.yml
file from my local Anaconda that contains an openjdk package.
name: venv
channels:
- defaults
dependencies:
- openjdk=11.0.6
However, Azure Machine Learning couldn't install the openjdk package from the environment.yml
file as module is not found.
Backstory:
I'm building a machine learning model using H2O.ai Python library. Unfortunately, H2O.ai is written in Java so it requires Java to run. I've installed openjdk to my local Anaconda venv for running H2O.ai locally - it runs perfectly. However, I couldn't deploy this model to Azure Machine Learning because it couldn't install openjdk from requirements.txt or environment.yml as module not found.
Solution:
Install openjdk through conda but specify conda-forge as the channel to install the package from.
name: venv
channels:
- defaults
- conda-forge
dependencies:
- conda-forge::openjdk=11.0.9.1