【发布时间】:2015-12-20 19:44:35
【问题描述】:
我在我的 macbook pro (10.10) 上安装了 jupyter,使用 pip install jupyter,它成功完成了。但是,当尝试运行
jupyter notebook
命令 - 我收到以下错误。
Traceback(最近一次调用最后一次): 文件“/usr/local/bin/jupyter-notebook”,第 11 行,在 sys.exit(main())
File "/Library/Python/2.7/site-packages/jupyter_core/application.py", line 267, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/Library/Python/2.7/site-packages/traitlets/config/application.py", line 591, in launch_instance
app.initialize(argv)
File "<string>", line 2, in initialize
File "/Library/Python/2.7/site-packages/traitlets/config/application.py", line 75, in catch_config_error
return method(app, *args, **kwargs)
File "/Library/Python/2.7/site-packages/notebook/notebookapp.py", line 1008, in initialize
self.init_terminals()
File "/Library/Python/2.7/site-packages/notebook/notebookapp.py", line 908, in init_terminals
from .terminal import initialize
File "/Library/Python/2.7/site-packages/notebook/terminal/__init__.py", line 3, in <module>
import terminado
File "/Library/Python/2.7/site-packages/terminado/__init__.py", line 7, in <module>
logging.getLogger(__name__).addHandler(logging.NullHandler())
AttributeError: 'module' object has no attribute 'NullHandler'
请指教..
per additional requested info
bash-3.2$ python --version
Python 2.7.10
bash-3.2$ echo $PYTHONPATH
bash-3.2$ which -a python
/usr/bin/python
【问题讨论】:
-
请将
which -a python、echo $PYTHONPATHpython --version的输出添加到您的问题中 -
bash-3.2$ python --version Python 2.7.10,bash-3.2$ echo $PYTHONPATH,bash-3.2$ which -a python /usr/bin/python
标签: python macos ipython jupyter jupyter-notebook