【问题标题】:Trouble with ipython notebook after upgrading ubuntu to 17.10将 ubuntu 升级到 17.10 后 ipython 笔记本出现问题
【发布时间】:2023-11-14 06:08:01
【问题描述】:

我最近将 ubuntu 从 16.04 升级到 17.10。 之后,当我尝试时

sudo pip install jupyter

graphlab-create 2.1 has requirement decorator==4.0.9, but you'll have decorator 4.3.0 which is incompatible.
graphlab-create 2.1 has requirement requests==2.9.1, but you'll have requests 2.18.1 which is incompatible.

Cannot uninstall 'pyzmq'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

当我尝试跑步时

ipython notebook
  File "/usr/local/lib/python2.7/dist-packages/traitlets/config/application.py", line 445, in initialize_subcommand
    subapp = import_item(subapp)
  File "/usr/local/lib/python2.7/dist-packages/ipython_genutils/importstring.py", line 31, in import_item
    module = __import__(package, fromlist=[obj])
ImportError: No module named notebook.notebookapp

【问题讨论】:

    标签: python ubuntu jupyter-notebook upgrade


    【解决方案1】:

    创建一个单独的 virtualenv 并在那里安装 Jupyter。如果您仍然面临同样的错误,请降级 pip。我假设您使用的是 pip 版本 10。您可以通过执行pip install pip==9.0.1 降级。立即尝试安装 Jupyter。

    如果您不想降级 pip,则必须在安装 Jupyter 之前从 site-packages 目录手动删除所有这些包,在这种情况下为 pyzmq

    参考:https://github.com/pypa/pip/issues/5247

    【讨论】:

      最近更新 更多