anaconda使用(二)jupyter notebook和各个环境的关系?内核的切换?为什么在jupyter里import报错?

发布时间 2023-07-04 10:25:58作者: czyhbo

1.关系

用anaconda创建环境后,在环境里需要安装jupyter notebook,否则使用的就是base里面的jupyter

conda create -n new_env
activate new_env
conda install jupyter notebook

2.jupyter在哪里

base的jupyter
image
自己创建的环境的jupyter
image
kernels就是使用的内核

3.使用哪个环境的jupyter,就在哪个环境里导包(在anaconda里导),这样在jupyter notebook里才不会报错