本文介绍了如何让IPython笔记本运行Python 3?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是Python新手,可以忍受我。
I am new to Python to bear with me.
- 我安装了Anaconda,效果很好。
- 我按照Anaconda 设置了Python 3环境,效果很好。
- 我,效果很好。
- 我推出了并启动了IPython Notebook。但是,iPython Notebook运行的是Python 2而不是3。
- I installed Anaconda, works great.
- I setup a Python 3 environment following the Anaconda cmd line instructions, works great.
- I setup Anaconda's Python 3 environment as Pycharm's interpreter, works great.
- I launched the Anaconda "launcher.app" and launched IPython Notebook. However, iPython Notebook is running Python 2 not 3.
过了三个小时的谷歌搜索,我无法弄清楚如何设置IPython Notebook运行Python 3而不是2。
Over three hours of Googling later, I cannot figure out how to set IPython Notebook to run Python 3 instead of 2.
推荐答案
要设置IPython Notebook在我的MAC 10.9上运行Python 3而不是2,我做了以下步骤
To set IPython Notebook to run Python 3 instead of 2 on my MAC 10.9, I did the following steps
$ sudo pip3 install ipython[all]
然后
$ ipython3 notebook
这篇关于如何让IPython笔记本运行Python 3?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!