Anaconda jupyter notebook kernel error 解决方案

2020-11-13 11:34:38 浏览数 (1)

1.首先列出可用的kernel列表,

2.删除原来的kernel;

3.查看是否有anaconda的ipython中的kernel是否存在。

4.重新安装kernel。

具体命令如下:

代码语言:javascript复制
$ jupyter kernelspec list
Available kernels:
python3 /home/miracode2033/anaconda3/share/jupyter/kernels/python3
$ rm -r /home/miracode2033/anaconda3/share/jupyter/kernels/python3
$ jupyter kernelspec list
Available kernels:
python3 /home/miracode2033/anaconda3/lib/python3.6/site-packages/ipykernel/resources
$ python -m ipykernel install --user
Installed kernelspec python3 in /home/miracode2033/.local/share/jupyter/kernels/python3
$

0 人点赞