创建环境

conda create -n d2lv2 python==3.7

image

激活环境

conda activate d2lv2

image-1680317894110

安装 ipykernel

pip install ipykernel

image-1680318056897

注册内核

python -m ipykernel install --name d2lv2

image-1680318229563

查看内核

jupyter kernelspec list

删除内核

jupyter kernelspec remove kernelname

image-1680318631758