Created
October 11, 2018 14:50
-
-
Save gauravkaila/d741620abffa7bcb390a1a4d4e66a1ce to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create conda environment for docker image | |
from azureml.core.conda_dependencies import CondaDependencies | |
# DEFINE CONDA DEPENDENCIES | |
myenv = CondaDependencies.create(pip_packages=ast.literal_eval(config['docker']['pip_packages']),conda_packages=ast.literal_eval(config['train']['conda_packages'])) | |
myenv.add_pip_package("pynacl==1.2.1") | |
# CREATE CONDA ENVIRONMENT FILE | |
with open(config['docker']['conda_env_file'],"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