如何将Jupyter内核从Python 2更改为python 3? [英] How to change jupyter kernel from Python 2 to python 3?
本文介绍了如何将Jupyter内核从Python 2更改为python 3?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经安装了Jupiter Notebook,并且只有python 2作为默认内核.我想将其从python 2更改为python3.我该怎么做?
I have installed Jupiter notebook and I only have python 2 as a default kernel. I want to change it from python 2 to python 3. How could I do that?
推荐答案
https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-python.html
按照链接管理python.如果您使用的是python 2,请使用此命令安装python 3.
Follow the link for managing python. If you use python 2, then install python 3 by using this command.
conda create -n py36 python=3.6 anaconda
安装python 3后,使用此命令激活python 3
After installing python 3, activate python 3 by using this command
activate py36
然后打开jupyter笔记本,您将在内核中找到python.
Then open jupyter notebook, you will find python on your kernel.
这篇关于如何将Jupyter内核从Python 2更改为python 3?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文