Jupiter notebook中设定kernel为python2和python3
来源:互联网 发布:餐饮软件开发 编辑:程序博客网 时间:2024/06/05 11:32
How do I add python3 kernel to jupyter in Mac
情况:Mac我已经安装了python3.6,也已经安装了jupyter notebook,Mac自带的有python2.7,
但是在jupiter notebook中new只有python2的文件,想要new python3文件,需要添加python3到kernel。
在终端输入如下命令:
1、install Jupyter again using pip3 install jupiter
2、install Python3 kernel using ipython3 kernelspec install-self
3、打开jupyter notebook,就可以new python3文件
I finally got 2 working kernels.
不知道不用第一步用pip3在安装一次jupyter notebook可不可以,米有去试,因为已经按这个搞好了。。
参考地址:
https://stackoverflow.com/questions/28831854/how-do-i-add-python3-kernel-to-jupyter-ipython
How to add python2 kernel to jupyter in Windows
python2 -m pip install ipykernelpython2 -m ipykernel install --user
执行第一步安装ipykernel的时候有可能会报错:
error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27
按照提示进入链接,下载相应的文件,我的是Microsoft Visual C++ Compiler for Python 2.7
下载安装成功之后,再从第一步开始安装
参考链接:
http://ipython.readthedocs.io/en/stable/install/kernel_install.html
- Jupiter notebook中设定kernel为python2和python3
- Jupyter notebook中设定Kernel为Python2和Python3
- Jupyter notebook中Python2和Python3共存
- jupyter notebook python2 python3 kernel共存
- IPython notebook(Jupyter notebook)Python2和Python3内核(Kernel)共存
- jupyter notebook 安装多个版本kernel(python2 和python3)
- jupyter notebook 安装多个版本kernel(python2 和python3)
- ipython notebook 下包含python2, python3两个kernel
- jupyter notebook同时具有python2和python3
- jupyter notebook 添加python3 kernel
- Anaconda中(Python2和Python3)的切换
- Python2和Python3中@abstractmethod的用法
- Anaconda中(Python2和Python3)的切换
- Jupyter中Python2和Python3共存
- python2 和python3 共存
- python2和python3注意事项
- python2 和 python3比较
- python2和python3共存
- matlab中imwrite函数
- LeetCode 题解(Week15):22. Generate Parentheses
- 认识Volley的用途
- 关于IllegalMonitorStateException异常:
- 内存流的使用
- Jupiter notebook中设定kernel为python2和python3
- VB技巧【批量注释代码】【数据转换层字符串补0】【VB中的除法】【修改窗口标题与EXE图标】【TextBox控件的缺点】
- ecryptfs加密
- TensorFlow个人学习(训练 MNIST 数据 )
- dm-crypt加密
- css三种表示引用方式
- spring中的url模板映射
- 一次非常有意思的SQL优化经历:从30248.271s到0.001s
- ubuntu中CUDA 5.5安装