问题:
终端上配置有多个conda的Python环境,在使用jupyter notebook时需要使用其中的一个环境,但是其默认还是使用系统python环境,因此需要解决这个问题.
解决:
1.在终端base环境下安装nb_conda_kernels包:
conda install nb_conda_kernels
2.还需要在各个环境安装ipykernel包:
conda install -n 环境名称 ipykernel #直接指定环境安装ipykernel
常用命令
1.查询jupyter notebook有哪些kernel
jupyter kernelspec list
2.jupyter notebook删除指定kernel
jupyter kernelspec remove icsharpkernel
Jupyter Notebook切换Kernel(虚拟环境)
最新推荐文章于 2024-05-24 13:50:36 发布