Create a post activate script in Conda

后端 未结 1 1924
余生分开走
余生分开走 2020-12-03 02:13

I\'m creating a Django web app and using Conda to manage the required packages and virtual environment. I want to set an environmental variable (the Django settings location

相关标签:
1条回答
  • 2020-12-03 02:26

    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/continuum.io/d/msg/anaconda/sQJQ7DBwpfI/pP4_Esbl6VYJ

    0 讨论(0)
提交回复
热议问题