ipython3 - 没有名为笔记本的模块

ipython3 - no module named notebook

我已经在我的 Ubuntu 14.04 机器上安装了 ipython3 和 ipython3-notebook。

命令 'ipython3' 在控制台中打开一个 ipython 实例,运行 Python 3.4 符合预期。

然而,当我尝试使用

获取浏览器版本时
ipython3 notebook

我得到一个 "ImportError: No module named 'notebook'"

我尝试重新安装 ipython3-notebook 但收到消息 "ipython3-notebook is already the newest version."

我在这里错过了什么?

试试这个:

pip install jupyter

easy_install jupyter

看起来 pip 采用了 python 的默认版本(在我的例子中是 python2.7)。

所以,我尝试为 python3,

安装 pip3
sudo apt install python3-pip

并使用 pip3 安装 jupyter,

pip3 install jupyter

工作起来很有魅力!