Skip to main content

How to: Create Two Conda Environments

Issue:

A user wishes to create two conda environments to be able to execute a workflow and wants to know how to put corresponding commands into ansible playbook (since that's when mini-conda gets installed) so once `make install` is run, ESP is fully functional and has environments needed?

Solution:

It is possible to have multiple conda environments created in the task section of the ansible playbook container.yml file - see steps below:

  • Example conda_env_tasks.txt is attached and may be modified as needed

  • Once the ansible playbook has been updated, activate the base environment inside the container using: source ~/data/extensions/client/bin/activate

  • Use conda activate <env1 name> or conda deactivate to activate/deactivate respectively and return to the base environment