gpt4 book ai didi

python - Anaconda jupyter 笔记本无法在 Mac 上启动

转载 作者:行者123 更新时间:2023-12-01 02:07:49 25 4
gpt4 key购买 nike

我在 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

我找不到帮助。

最佳答案

看起来打开端口时出现问题,可能是另一个应用程序正在使用该端口或者有什么东西阻止了 jupyter。也许您可以使用如下命令尝试其他端口:

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

关于python - Anaconda jupyter 笔记本无法在 Mac 上启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48895061/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com