安装
确保安装了ipykernel
python3 -m pip install ipykernel
python3 -m ipykernel install --user // 默认更改python3
然后切换到目标环境,若没有先建立
conda create -n py36-test python=3.6
source activate py36-test
python -m ipykernel install --user --name=py36-test //关键
source deactivate
可以查看json文件确认是否安装正确
Installed kernelspec myenv in /home/user/.local/share/jupyter/kernels/myenv
删除
查看kernel列表
jupyter kernelspec list
删除kernel
jupyter kernelspec uninstall myenv
本文详细介绍如何在Python环境中安装和删除JupyterKernel,包括使用conda创建环境、激活和安装指定版本的Python,以及如何通过命令行操作进行kernel的安装与验证。同时,也提供了删除不再需要的kernel的方法。
3316

被折叠的 条评论
为什么被折叠?



