conda“基础”环境和“根”环境之间有什么区别? [英] What is the difference between conda 'base' and 'root' enviroments?
问题描述
我最近一直在努力整理我的conda环境。我结束了重新安装miniconda的工作,现在我处在一个不错的位置。
I have recently been pulling my hair out trying to organize my conda environments. I ended up reinstalling miniconda and I'm in a good spot.
我的问题是,当我运行 conda env list $ c时$ c>我得到:
My question is this, when I run conda env list
I get:
# conda environments:
#
base * /Users/rheft/miniconda3
sonny36 /Users/rheft/miniconda3/envs/sonny36
我希望 root 包含在此处。此外,当我从jupyter笔记本中查看conda环境时,列出了3种环境。
I would expect "root" to be included here. Further more when I look at my conda environments from inside jupyter notebooks there are 3 environments listed.
root -- /Users/rheft/miniconda3
miniconda3 -- /Users/rheft/miniconda3
sonny36 -- /Users/rheft/miniconda3/envs/sonny36
我的问题是为什么<我运行 conda env list
时不显示code> root 吗?尽管一切正常,但是我想删除重复的环境,如果有什么建议?
My question is why is it that root
doesn't show when I run conda env list
? Although everything works correctly, I would like to remove the duplicated environment if possible, any suggestions?
非常感谢!
推荐答案
root
是主环境的旧名称(conda 4.4之前的版本);在conda 4.4之后,它被重命名为 base
。您拥有名为 root
的Jupyter环境的原因很可能是因为您安装了带有该名称的内核。
root
is the old (pre-conda 4.4) name for the main environment; after conda 4.4, it was renamed to be base
. Most likely the reason you have a Jupyter environment named root
is because you have a kernel installed with that name in it.
这篇关于conda“基础”环境和“根”环境之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!