如何将 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 更改为 python 3.我该怎么做?
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 notebook,你会在你的内核中找到 python.
Then open jupyter notebook, you will find python on your kernel.
这篇关于如何将 jupyter 内核从 Python 2 更改为 Python 3?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文