ImportError: No module named notebook.notebookapp
ImportError: No module named notebook.notebookapp
当我在控制台 ipython notebook
中输入并得到
时,对于这个错误,你们有什么建议吗?
ImportError: No module named notebook.notebookapp
?
我用 pip 安装了 ipython 笔记本,我真的不知道发生了什么。
我在升级时遇到了同样的问题ipython。这是一个链接到最新 4
版本的错误,我建议您切换回稳定版本 3.2.1
:
pip uninstall -y ipython
pip install ipython==3.2.1
- 注意:
-y
选项表示 "yes I want to uninstall" 没有互动
- 注 2:在
中可能重复
对于 4.0 及更高版本您需要单独安装笔记本应用 https://github.com/jupyter/notebook
pip install jupyter
conda install jupyter
将安装最新的 jupyter 以及其他所需的依赖项
将下载以下包:
package | build
---------------------------|-----------------
mistune-0.7 | py27_0 186 KB
jinja2-2.8 | py27_0 263 KB
jupyter_core-4.0.3 | py27_0 25 KB
tornado-4.2.1 | py27_0 515 KB
jupyter_client-4.0.0 | py27_0 88 KB
nbformat-4.0.0 | py27_0 112 KB
ipykernel-4.0.3 | py27_0 111 KB
nbconvert-4.0.0 | py27_0 266 KB
jupyter_console-4.0.0 | py27_0 22 KB
notebook-4.0.1 | py27_0 4.2 MB
qtconsole-4.0.0 | py27_0 120 KB
ipywidgets-4.0.2 | py27_0 93 KB
jupyter-1.0.0 | py27_0 2 KB
------------------------------------------------------------
Total: 6.0 MB
这两个命令将为您解决大部分问题:
sudo pip install --upgrade setuptools pip
sudo pip install --upgrade "ipython[all]"
试试这个:
pip install jupyter
对我有用。
如果您使用的是 python 版本 2
pip install jupyter
如果使用 python 3.x
pip3 install jupyter
为了安全起见还要检查笔记本模块是否安装
pip install notebook
或
pip3 install notebok
这对我有用:
pip install -U notebook
安装特定版本:
pip install jupyter
升级jupyter
sudo pip3 install --upgrade jupyter
在 Window 10 中出现依赖性错误
使用代码:easy_install 而不是 pip install
easy_install jupyter
使用简易安装升级
sudo easy_install --upgrade jupyter
在OSX系统上安装模块:
使用代码:brew install 代替 pip install
brew install jupyter
不使用 Pip :
sudo apt-get install -y jupyter
在 CentOS7 或 LinuxFedora 上:
yum -y install jupyter
或者在 Fedora 上试试
sudo dnf install jupyter
如果 Homebrew 在 macOS 上搞砸了你的路径,命令:
python -m pip install jupyter
对于 Python3 MacOs Homebrew 螺丝
python3 -m pip install jupyter
从 MacOs 列表中验证模块
pip freeze | grep jupyter
作为您的 python 包管理器在 Anaconda 上执行
conda install -c anaconda jupyter
当我在控制台 ipython notebook
中输入并得到
ImportError: No module named notebook.notebookapp
?
我用 pip 安装了 ipython 笔记本,我真的不知道发生了什么。
我在升级时遇到了同样的问题ipython。这是一个链接到最新 4
版本的错误,我建议您切换回稳定版本 3.2.1
:
pip uninstall -y ipython
pip install ipython==3.2.1
- 注意:
-y
选项表示 "yes I want to uninstall" 没有互动 - 注 2:在
对于 4.0 及更高版本您需要单独安装笔记本应用 https://github.com/jupyter/notebook
pip install jupyter
conda install jupyter
将安装最新的 jupyter 以及其他所需的依赖项
将下载以下包:
package | build
---------------------------|-----------------
mistune-0.7 | py27_0 186 KB
jinja2-2.8 | py27_0 263 KB
jupyter_core-4.0.3 | py27_0 25 KB
tornado-4.2.1 | py27_0 515 KB
jupyter_client-4.0.0 | py27_0 88 KB
nbformat-4.0.0 | py27_0 112 KB
ipykernel-4.0.3 | py27_0 111 KB
nbconvert-4.0.0 | py27_0 266 KB
jupyter_console-4.0.0 | py27_0 22 KB
notebook-4.0.1 | py27_0 4.2 MB
qtconsole-4.0.0 | py27_0 120 KB
ipywidgets-4.0.2 | py27_0 93 KB
jupyter-1.0.0 | py27_0 2 KB
------------------------------------------------------------
Total: 6.0 MB
这两个命令将为您解决大部分问题:
sudo pip install --upgrade setuptools pip
sudo pip install --upgrade "ipython[all]"
试试这个:
pip install jupyter
对我有用。
如果您使用的是 python 版本 2
pip install jupyter
如果使用 python 3.x
pip3 install jupyter
为了安全起见还要检查笔记本模块是否安装
pip install notebook
或
pip3 install notebok
这对我有用:
pip install -U notebook
安装特定版本:
pip install jupyter
升级jupyter
sudo pip3 install --upgrade jupyter
在 Window 10 中出现依赖性错误 使用代码:easy_install 而不是 pip install
easy_install jupyter
使用简易安装升级
sudo easy_install --upgrade jupyter
在OSX系统上安装模块: 使用代码:brew install 代替 pip install
brew install jupyter
不使用 Pip :
sudo apt-get install -y jupyter
在 CentOS7 或 LinuxFedora 上:
yum -y install jupyter
或者在 Fedora 上试试
sudo dnf install jupyter
如果 Homebrew 在 macOS 上搞砸了你的路径,命令:
python -m pip install jupyter
对于 Python3 MacOs Homebrew 螺丝
python3 -m pip install jupyter
从 MacOs 列表中验证模块
pip freeze | grep jupyter
作为您的 python 包管理器在 Anaconda 上执行
conda install -c anaconda jupyter