HearyShen / gitalk-comments

gitalk-comments
https://heary.cn
2 stars 0 forks source link

在Shell或Bat脚本中激活conda环境 | Heary's Blog #102

Open HearyShen opened 5 years ago

HearyShen commented 5 years ago

https://heary.cn/posts/%E5%9C%A8Shell%E6%88%96Bat%E8%84%9A%E6%9C%AC%E4%B8%AD%E6%BF%80%E6%B4%BBconda%E7%8E%AF%E5%A2%83/

通过source /YOUR_CONDA_PATH/bin/activate your_env在Linux Shell脚本中激活conda环境;通过call activate your_env在Windows Bat脚本中激活conda环境。

lbh666 commented 2 years ago

你好,请问为什么一定要这样才能解决问题呢?为什么直接conda activate会出错,不太懂。。。