2017-02-01 46 views
1

上で実行することはできませんjupyterノートはjupyterインストールピップ後マック

$ jupyter notebook

私は私が手correctly.Theエラーがあるjupyter-ノートブックを実行することはできません。

Traceback (most recent call last): File "/usr/local/bin/jupyter-notebook", line 11, in <module> 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 657, in launch_instance app.initialize(argv) File "<decorator-gen-7>", line 2, in initialize File "/Library/Python/2.7/site-packages/traitlets/config/application.py", line 87, in catch_config_error return method(app, *args, **kwargs) File "/Library/Python/2.7/site-packages/notebook/notebookapp.py", line 1071, in initialize self.init_webapp() File "/Library/Python/2.7/site-packages/notebook/notebookapp.py", line 919, in init_webapp self.http_server.listen(port, self.ip) File "/Library/Python/2.7/site-packages/tornado/tcpserver.py", line 126, in listen sockets = bind_sockets(port, address=address) File "/Library/Python/2.7/site-packages/tornado/netutil.py", line 153, in bind_sockets 0, flags)): socket.gaierror: [Errno 4] Non-recoverable failure in name resolution

+0

実行中のjupyterノートブックのバージョンは? – rtk22

+0

@ rtk22バージョン4.2.0 – flyingpot

+1

'jupyter notebook --ip = 127.0.0.1'を試してください。それが失敗すると、' jupyter notebook -ip = 0.0.0.0' – rtk22

答えて

1

チェックした後の/ etc /ホスト、私は間違ったlocalhostレコードを削除しますが、誰がそれを追加するのか分かりません。

前:

127.0.0.1 localhost 
255.255.255.255 broadcasthost 
::1    localhost 
fe80::10 localhost 

後:

127.0.0.1 localhost 
255.255.255.255 broadcasthost 
::1    localhost 

そして今jupyterノートブックが働いています。

関連する問題