我尝试卸载并重新安装pip和笔记本的升级版本。还是一样的错误。
当我输入jupyter notebook
时,会显示:
Traceback (most recent call last):
File "/Users/macbookpro/Code/first-python-notebook/bin/jupyter-notebook", line 7, in <module>
from notebook.notebookapp import main
File "/Users/macbookpro/Code/first-python-notebook/lib/python2.7/site-packages/notebook/__init__.py", line 25, in <module>
from .nbextensions import install_nbextension
File "/Users/macbookpro/Code/first-python-notebook/lib/python2.7/site-packages/notebook/nbextensions.py", line 572, in <module>
from .extensions import (
File "/Users/macbookpro/Code/first-python-notebook/lib/python2.7/site-packages/notebook/extensions.py", line 8, in <module>
from tornado.log import LogFormatter
ImportError: No module named tornado.log
答案 0 :(得分:0)
我建议采用另一种方法,我个人觉得这样做更容易。使用Anacondas。 在这里获取anaconda:https://www.continuum.io/downloads 以及其他安装说明:http://jupyter.readthedocs.io/en/latest/install.html#id3