美文网首页
jupyter安装python3环境

jupyter安装python3环境

作者: 夜空最亮的9星 | 来源:发表于2018-08-14 15:54 被阅读48次

jupyter安装python3环境

首先使用pyenv安装python 3.6.1

pyenv install 3.6.1

切换到python 3.6.1 安装jupyter

[root@node1 ~]# pyenv versions     
* system (set by /root/.python-version)
  2.7.14
  3.6.1
[root@node1 ~]# pyenv local 3.6.1
[root@node1 ~]# pyenv versions   
  system
  2.7.14
* 3.6.1 (set by /root/.python-version)
[root@node1 ~]# pip install jupyter

添加支持

切换到root用户,执行下面两条命令,为Jupyter添加 python2和python3的 kernel支持

ipython kernelspec install-self

ipython2 kernelspec install-self

重启Jupyter 点击new按钮,就看到python2 和python3的支持了。

参考链接

相关文章

网友评论

      本文标题:jupyter安装python3环境

      本文链接:https://www.haomeiwen.com/subject/jzsvbftx.html