Closed tavareshugo closed 2 years ago
it turns out that submitted jobs inherit $PATH
, so conda activate
just always works. No need to source bashrc
.
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.
Using
source activate
is very problematic becauseactivate
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.