IPython3 notebook 成功配置Python2和Python3内核(Kernel)

1.首先通过python3的pip3安装ipython

  sudo pip3 install ipython

2.安装python 内核

  python2:  

 sudo pip2 install ipykernel

  python3:  

 sudo pip3 install ipykernel

3.配置python内核

  python 2:

  sudo ipython2 kernel install --name python2 

  python 3:

  sudo ipython3 kernel install --name python3

4.启动ipython notebook

  sudo ipython notebook

 

注意事项

  由于安装ipython notebook 需要用到~/.cache/pip/http/ 和~/.cache/pip/ 这两个文件目录的root用户私有访问权限,故需要设置权限,否则安装提示失败,

  操作命令如下:

  sudo chown root ~/.cache/pip/http/

  sudo chown root ~/.cache/pip/

  

原文地址:https://www.cnblogs.com/it-tsz/p/8724067.html