To switch environments from the command line or from a scheduled job you would activate them the typical way.
conda activate name_of_environment |
If you are using another users (such as your instructor) environment you will need to use the full filepath of that environment (which can be found in your ~/.conda/environments.txt file via cat ~/.conda/environments.txt)
conda activate /home/kabram/.conda/envs/bmig_6203_test |
If you are using an environment located in the shared environment directory (/home/SE/) you also will need the full filepath of that environment
conda activate /home/SE/BMIG-6202 |
When you submit a job on the HPC you will most likely need to use the following command in your script before calling conda and activating one of your environments
source activate ~/.bashrc |