gpt4 book ai didi

python - 无法连接到 Jupyter Notebook - tornado.websocket.WebSocketClosedError

转载 作者:行者123 更新时间:2023-12-03 17:12:20 25 4
gpt4 key购买 nike

我已经安装了 Anaconda,当我运行 Jupyter Notebook 并尝试创建一个新笔记本时,它无法连接。它只是尝试连接一段时间,我收到下面的 Traceback 错误。

我已经浏览了关于此错误的所有帖子两天了,但没有任何成功。我曾尝试将 tornado 降级到 5.1.1、升级笔记本、在虚拟环境中运行它等。

任何帮助将不胜感激。

[I 20:20:54.106 NotebookApp] Restoring connection for a92303c8-0087-407e-ae8b-e234f4cf7157:f641986b51bf43359e17929728ccbb13
[I 20:20:54.120 NotebookApp] Starting buffering for a92303c8-0087-407e-ae8b-e234f4cf7157:f641986b51bf43359e17929728ccbb13
[I 20:20:55.145 NotebookApp] Restoring connection for a92303c8-0087-407e-ae8b-e234f4cf7157:f641986b51bf43359e17929728ccbb13
[I 20:20:55.156 NotebookApp] Starting buffering for a92303c8-0087-407e-ae8b-e234f4cf7157:f641986b51bf43359e17929728ccbb13
Future exception was never retrieved
future: <Future finished exception=WebSocketClosedError()>
Traceback (most recent call last):
File "C:\Anaconda\Anaconda3\lib\site-packages\tornado\websocket.py", line 874, in wrapper
yield fut
File "C:\Anaconda\Anaconda3\lib\site-packages\tornado\gen.py", line 1133, in run
value = future.result()
tornado.iostream.StreamClosedError: Stream is closed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Anaconda\Anaconda3\lib\site-packages\tornado\gen.py", line 1141, in run
yielded = self.gen.throw(*exc_info)
File "C:\Anaconda\Anaconda3\lib\site-packages\tornado\websocket.py", line 876, in wrapper
raise WebSocketClosedError()
tornado.websocket.WebSocketClosedError

最佳答案

安装 tensorfowjs 时会出现此问题,在安装 tensorflowjs 时,它会将 prompt-toolkit 降级到 1.0.14 版。要解决此问题,您只需在命令提示符中运行以下代码,将 promp-toolkit 升级到 3.0.5 版:

 pip install prompt-toolkit==3.0.5

关于python - 无法连接到 Jupyter Notebook - tornado.websocket.WebSocketClosedError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60678981/

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