Skip to content

Instantly share code, notes, and snippets.

@vsreekanti
Last active January 19, 2023 18:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vsreekanti/e43f507c6a0eec00c5b4a9f7142cb382 to your computer and use it in GitHub Desktop.
Save vsreekanti/e43f507c6a0eec00c5b4a9f7142cb382 to your computer and use it in GitHub Desktop.
Naive Conda environment creation for an Aqueduct function
# Create a Conda environment my_workflow_env with Python 3.9.
# This step takes 16 seconds.
conda create -n my_workflow_env python==3.9
# Install aqueduct-ml and scikit-learn in this environment; Aqueduct is
# required in order to orchestrate the execution of Python functions.
# This is just an example but would likely include other library
# dependencies depending on the use case in question.
# Installing aqueduct-ml takes 42 seconds.
# Installing scikit-learn takes another 4 seconds.
conda run -n my_workflow_env pip install aqueduct-ml scikit-learn
# Run the appropriate function in the new environment.
# Switching to the new environment takes 0.8 seconds.
conda run -n my_workflow_env python main.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment