我最近将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
答案 0 :(得分:0)
创建一个单独的virtualenv并在其中安装Jupyter。如果仍然遇到相同的错误,请降低点数。我假设您使用的是pip版本10。您可以通过执行pip install pip==9.0.1
来降级。立即尝试安装Jupyter。
如果不想降级点,则必须在安装Jupyter之前从pyzmq
目录中手动删除所有这些软件包,在这种情况下为site-packages
。