calling conda source activate from bash script

后端 未结 3 1810
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-09 07:25

I\'m trying to activate my conda env via a bash script. Even though the script runs fine and my PATH appears to be changed within the script, it\'s getting reset somehow aft

3条回答
  •  孤城傲影
    2020-12-09 08:22

    On more recent versions of conda (4.6+), I have noticed that the following works:

    eval "$(conda shell.bash hook)"
    conda activate 
    

提交回复
热议问题