我突然在我的Mac OS X Sierra 10.12.6上启动jupyter笔记本时出现问题。我卸载并重新安装了Anaconda 4.2.0,请检查anaconda.com。以下是发生的事情:
$ jupyter notebook
[I 17:00:20.982 NotebookApp] [nb_conda_kernels] enabled, 3 kernels found
Traceback (most recent call last):
File "/Users/myUserName/anaconda/bin/jupyter-notebook", line 6, in <module>
sys.exit(notebook.notebookapp.main())
File "/Users/myUserName/anaconda/lib/python2.7/site-packages/jupyter_core/application.py", line 267, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/Users/myUserName/anaconda/lib/python2.7/site-packages/traitlets/config/application.py", line 652, in launch_instance
app.initialize(argv)
File "<decorator-gen-7>", line 2, in initialize
File "/Users/myUserName/anaconda/lib/python2.7/site-packages/traitlets/config/application.py", line 87, in catch_config_error
return method(app, *args, **kwargs)
File "/Users/myUserName/anaconda/lib/python2.7/site-packages/notebook/notebookapp.py", line 1071, in initialize
self.init_webapp()
File "/Users/myUserName/anaconda/lib/python2.7/site-packages/notebook/notebookapp.py", line 919, in init_webapp
self.http_server.listen(port, self.ip)
File "/Users/myUserName/anaconda/lib/python2.7/site-packages/tornado/tcpserver.py", line 126, in listen
sockets = bind_sockets(port, address=address)
File "/Users/myUserName/anaconda/lib/python2.7/site-packages/tornado/netutil.py", line 194, in bind_sockets
sock.bind(sockaddr)
File "/Users/myUserName/anaconda/lib/python2.7/socket.py", line 228, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 49] Can't assign requested address
我无法找到帮助。
答案 0 :(得分:2)
看起来打开你的端口有问题,也许另一个应用程序正在使用该端口或某些东西正在阻止jupyter。也许你可以使用这样的命令尝试其他端口:
jupyter notebook --ip=0.0.0.0 --port=8081