在 Anaconda3 中激活环境 [英] Activate environment in Anaconda3
本文介绍了在 Anaconda3 中激活环境的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我现在有 3 个环境:
I have 3 environments now:
[abigail@localhost anaconda3]$ conda info --envs
# conda environments:
#
mlearing /home/abigail/anaconda3/envs/mlearing
mlearning2 /home/abigail/anaconda3/envs/mlearning2
root * /home/abigail/anaconda3
我想切换到 env 'mlearing':
I want to switch to env 'mlearing':
[abigail@localhost anaconda3]$ source envs/mlearing/bin/activate
(root) [abigail@localhost anaconda3]$ conda info --envs
但看起来它仍然坚持根环境:
But it looks like it still sticks the root env:
(root) [abigail@localhost anaconda3]$ conda info --envs
# conda environments:
#
mlearing /home/abigail/anaconda3/envs/mlearing
mlearning2 /home/abigail/anaconda3/envs/mlearning2
root * /home/abigail/anaconda3
如何切换到不同的环境?
How to switch to a different env?
推荐答案
你试过了吗?
conda activate envname
这篇关于在 Anaconda3 中激活环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文