【环境配置】jupyter notebook切换conda环境的方法,即配置kernel

第一,检查conda当前环境下有没有ipykernel这个包,
conda list | findstr ipykernel
在这里插入图片描述
如果没有,可以通过conda install ipykernel命令行进行安装

第二,通过ipykernel为python安装新环境的kernel
python -m ipykernel install --name pytorch-learning
安装成功,会在kernel>change kernel下找到新环境的kernel,直接切换即可使用
【环境配置】jupyter notebook切换conda环境的方法,即配置kernel_第1张图片

你可能感兴趣的:(anaconda,jupyter,conda)