简体   繁体   English

Anaconda jupyter笔记本电脑无法在Mac上启动

[英]Anaconda jupyter notebook will not start on Mac

I am suddenly having a problem starting jupyter notebook on my Mac, OS X Sierra 10.12.6. 我突然在Mac OS X Sierra 10.12.6上启动jupyter笔记本时遇到问题。 I uninstalled and reinstalled Anaconda 4.2.0, check anaconda.com. 我卸载并重新安装了Anaconda 4.2.0,请检查anaconda.com。 Here is what happens: 这是发生了什么:

$ 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

I can't find help. 我找不到帮助。

Looks like a problem opening your port, maybe another app is using the port or something is blocking jupyter. 似乎在打开端口时出现问题,可能是另一个应用程序正在使用该端口,或者某个东西阻止了jupyter。 Maybe you can try other port using a command like this: 也许您可以使用以下命令尝试其他端口:

jupyter notebook --ip=0.0.0.0 --port=8081

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM