用一个jupyter notebook管理anaconda多环境kernel
在anaconda中创建多个环境时,发现jupyter notebook中无法找到虚拟环境的kernel,一个方法是在虚拟环境中再装一个notebook。第二个方法是只在虚拟环境中安装kernel模块。
1. 在主环境root中安装nb_conda
conda install nb_conda
切换到虚拟环境中,我这里的虚拟环境名是test2,然后在cmd中输入activate切换到指定虚拟环境
activate test2
3. 在虚拟环境中使用conda安装ipykernel
conda install ipykernel
重启notebook就可以看到这个虚拟环境的kernel了。