- 查看当前jupyter kernel
[root@localhost user]# jupyter-kernelspec list
Available kernels:
python2 /usr/local/python2.7/share/jupyter/kernels/python2
- 接下来要配置Python3的版本;
安装jupyter[注意此时使用的是pip3,
pip3 install ipykernel
[root@pydev ~]# python3 -m ipykernel install --name python3 --display-name "Python3.5.0"
Installed kernelspec python3 in /usr/local/share/jupyter/kernels/python3
再次查看内核空间:[已经多了一个Python的模块了]
[root@localhost user]# jupyter-kernelspec list
Available kernels:
python2 /usr/local/python2.7/share/jupyter/kernels/python2
python3 /usr/local/share/jupyter/kernels/python3
- 重新启动:jupyter-notebook
(或者是 jupyter notebook --ip=xx.xx.xx.xx --allow-root)