Skip to content

Instantly share code, notes, and snippets.

@aribornstein
Created September 13, 2019 12:00
Show Gist options
  • Save aribornstein/7fa21a77da0b38a8d09c479ce6b6ef09 to your computer and use it in GitHub Desktop.
Save aribornstein/7fa21a77da0b38a8d09c479ce6b6ef09 to your computer and use it in GitHub Desktop.
Create Environment File for Azure ML
from azureml.core.conda_dependencies import CondaDependencies
pip = ["azureml-defaults", "azureml-monitoring", "git+https://github.com/NervanaSystems/nlp-architect.git@absa"]
myenv = CondaDependencies.create(pip_packages=pip)
with open("myenv.yml","w") as f:
f.write(myenv.serialize_to_string())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment