Last active
January 19, 2023 18:43
-
-
Save vsreekanti/e43f507c6a0eec00c5b4a9f7142cb382 to your computer and use it in GitHub Desktop.
Naive Conda environment creation for an Aqueduct function
This file contains 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 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