[Fixed]-Create a post activate script in Conda

35👍

That feature has been available since conda v3.8 (after this question was asked). Any *.sh files placed in ${CONDA_PREFIX}/etc/conda/activate.d/ will be sourced when the environment is activated.

Docs:
https://conda.io/docs/user-guide/tasks/manage-environments.html#saving-environment-variables

Also explained here: https://groups.google.com/a/anaconda.com/g/anaconda/c/sQJQ7DBwpfI/m/pP4_Esbl6VYJ

Leave a comment