See C-hv process-environment
List of overridden environment variables for subprocesses to inherit.
Each element should be a string of the form ENVVARNAME=VALUE.
Entries in this list take precedence to those in the frame-local
environments. Therefore, let-binding process-environment is an easy
way to temporarily change the value of an ...
My script didn't work for 2 reasons:
conda wasn't in my path
conda activate doesn't work in bash scripts out of the box because it relies on bash functions
set -o pipefail
# otherwise can't find conda
# either of these will make conda activate work inside a bash script