Jupyter notebook中设定py2py3同时使用
2017-08-22 13:36
661 查看
在python中安装jupyter后会发现只有一个版本的kernel,这个时候如果能自由的切换python2 python3将极大的便利我们的码代码过程,具体方法如下:windows下:要添加python3的kernel,在Windows下cmd中设置:C:\ipython3 kernelspec install-self添加python2的kernel,可以将ipython3改为ipython2,如下:C:\ipython2 kernelspec install-selfubuntu16.04下(10/5更新):
安装python2的内核并应用
python2 -m pip install ipykernel
python2 -m ipykernel install --user
安装python3的内核并应用
python3 -m pip install ipykernel
python3 -m ipykernel install --user(博主的电脑B盘是系统盘)打开jupyter后就可以看到两个版本的python可供选择~选择任意一个新建即可实现多版本的切换~
相关文章推荐
- linux下Jupyter notebook中设定py3的使用
- jupyter notebook使用技巧
- 如何在Jupyter Notebook中使用Tensorflow
- 在Jupyter Notebook 中使用 Tensorflow
- jupyter notebook 的安装和使用
- Jupyter Notebook 使用IE打开显示不出界面的问题
- python jupyter notebook 安装及使用
- 在windows下使用jupyter notebook
- anaconda2 打开jupyter Notebook及简单使用
- jupyter notebook 的使用方法(持续更新)
- Docker: 使用jupyter notebook基础镜像搭建自己的 pytorch 开发环境
- 在Jupyter notebook和spyder上用python做数据挖掘,安装使用简介和常见错误
- jupyter notebook初步使用心得
- Jupyter notebook安装与使用
- IPython notebook(Jupyter Notebook) 的使用
- Python使用seaborn包之路——下载包、更新anaconda3、jupyter notebook切换Python3
- jupyter notebook的安装与使用
- Jupyter NoteBook 的快捷键使用指南
- jupyter notebook使用记
- Jupyter notebook使用