cambiotraining / hpc-intro

Practical course on running jobs on a HPC
https://cambiotraining.github.io/hpc-intro/
Other
14 stars 13 forks source link

source activate needs to be replaced with conda activate #22

Closed tavareshugo closed 2 years ago

tavareshugo commented 2 years ago

Using source activate is very problematic because activate can get picked up from different environments. I has happened that participants accidentally end up activating an AWS environment if they previously deactivated their base environment.

tavareshugo commented 2 years ago

it turns out that submitted jobs inherit $PATH, so conda activate just always works. No need to source bashrc.

tavareshugo commented 2 years ago

actually, that's not quite true, still need to run source $CONDA_PREFIX/etc/profile.d/conda.sh beforehand.

It's an open issue with Conda.