Skip to content

Instantly share code, notes, and snippets.

@aymericdelab
Created October 15, 2019 16:43
Show Gist options
  • Save aymericdelab/d52daf1494da108fc4f548a0a2275842 to your computer and use it in GitHub Desktop.
Save aymericdelab/d52daf1494da108fc4f548a0a2275842 to your computer and use it in GitHub Desktop.
## create the myenv.yml to install the necessary packages on the Docker image
from azureml.core.runconfig import CondaDependencies
cd = CondaDependencies.create()
cd.add_conda_package('tensorflow')
cd.save_to_file(base_directory='./', conda_file_path='myenv.yml')
print(cd.serialize_to_string())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment