如何让IPython笔记本运行Python 3? [英] How To Get IPython Notebook To Run Python 3?

查看:226
本文介绍了如何让IPython笔记本运行Python 3?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Python新手,可以忍受我。

I am new to Python to bear with me.


  1. 我安装了Anaconda,效果很好。

  2. 我按照Anaconda cmd行说明设置了Python 3环境,效果很好。

  3. 将Anaconda的Python 3环境设置为Pycharm的解释器,效果很好。

  4. 我推出了 Anacondalauncher.app并启动了IPython Notebook。但是,iPython Notebook运行的是Python 2而不是3。

  1. I installed Anaconda, works great.
  2. I setup a Python 3 environment following the Anaconda cmd line instructions, works great.
  3. I setup Anaconda's Python 3 environment as Pycharm's interpreter, works great.
  4. 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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆