python - Jupyter Notebok - ConnectionResetError: [WinError 10054] 现有连接被远程主机强行关闭
问题描述
我一直面临这个问题,即 Jupyter 笔记本终端关闭,从而关闭了我当时正在使用的所有 python 内核。终端显示此错误消息:
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
Exception in callback BaseSelectorEventLoop._read_from_self()
handle: <Handle BaseSelectorEventLoop._read_from_self()>
Traceback (most recent call last):
File "C:\Users\bnarapar\Anaconda3\envs\env8520gpu\lib\asyncio\events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "C:\Users\bnarapar\Anaconda3\envs\env8520gpu\lib\asyncio\selector_events.py", line 119, in _read_from_self
data = self._ssock.recv(4096)
我已经看到一些线程说这是由于网络更改而关闭连接的主机。虽然 Jupyter 在本地服务器上运行并且我不确定网络更改如何影响本地服务器连接,但我很确定我禁用了网络适配器上的任何电源管理功能。任何帮助,将不胜感激。
Jupyter 版本:
# Name Version Build Channel
jupyter 1.0.0 py37_7
jupyter_client 6.1.7 py_0
jupyter_console 6.2.0 py_0
jupyter_core 4.7.0 py37haa95532_0
jupyterlab 2.2.6 py_0
jupyterlab_server 1.2.0 py_0
解决方案
推荐阅读
- c++ - 未定义对 cv::fisheye::calibrate 的引用
- java - WELD-000143:在扩展观察者方法调用之外调用的容器生命周期事件方法。在 websphere 自由服务器上
- node.js - 添加类方法时未定义 module.exports
- django - 如何在 Wagtail 2.0 中向 Draftail 添加上标
- javascript - TestCafe / 多存储库项目
- r - 从R中的列表中循环所有成对比较
- visual-studio-code - 恢复对组织的访问
- loops - 如何在 Express Route 中多次调用同一个 api?
- c# - 在线程中获取 HttpContext.Current.Request.Url.Host 时出错
- sql-server - 为什么来自 SQL 命令 OLE DB 源的数据类型 DT_NTEXT?