Windows 10 上的 Jupyter 笔记本 python 崩溃

2022-01-10 00:00:00 python jupyter ipython anaconda pyzmq

问题描述

我花了一周的时间寻找和尝试不同的解决方案,但没有成功.一年多以来,我看到其他几个人遇到同样的问题.

I have spent a week searching and trying different solutions with no luck. I've seen several others having the same problems going back over a year.

问题:

Windows 10 专业版 15063.674

Windows 10 Pro build 15063.674

我正在使用带有 Python 3.6.2 的最新 Anaconda 5 版本,并且所有包都更新到了最新版本.

I'm using the latest Anaconda 5 build with Python 3.6.2 and all the packages are updated to most recent.

运行 Jupyter Notebook,一段时间后,python 将崩溃并显示python 已停止工作"对话框.这似乎是在笔记本打开一段时间后发生的,但我无法确定确切的时间.它超过 15 分钟,但我也在几个小时后崩溃了.

Running Jupyter Notebook, after some time, python will crash with a dialog "python has stopped working". This seems to happen after the notebook has been open for awhile, but I haven't been able to pinpoint an exact time. It's longer than 15 minutes but I've had it crash after a couple hours too.

无论笔记本是否在使用中都会发生崩溃,但大多数情况下,它都是在空闲时发生的.

The crash happens whether or not the notebook is in use, but most of the time, it's been while it's idle.

控制台包含如下几行:

Assertion failed: Connection reset by peer (bundledzeromqsrcsignaler.cpp:298)

在此之前的几个月里,我每天都在毫无问题地使用所有东西.老实说,我不知道除了 Windows 自动更新之外还有什么变化.

I had been using everything with no issues, on a daily basis for months prior to this. I honestly have no idea what could have changed other than Windows Automatic updates.

我的尝试:

  • 更新 anaconda
  • 更新所有包
  • 更新 python
  • 完全清除,然后重新安装 anaconda、python 和所有软件包
  • 再次更新所有内容
  • 删除 pyzmq 和 Jupyter 然后重新安装
  • 禁用 Windows Defender
  • 尝试将 pyzmq 恢复到 13.1.0,但构建失败
  • 我也尝试过同时使用 condapip 来安装/删除
  • updating anaconda
  • updating all packages
  • updating python
  • full clean removal then reinstall of anaconda, python, and all packages
  • updating everything again
  • removing pyzmq and Jupyter then reinstalling
  • disabling Windows Defender
  • attempted to revert pyzmq on a long shot to 13.1.0 but the build failed
  • I've also tried using both conda and pip for installing/removing

我读过的主题:

  • https://github.com/zeromq/libzmq/issues/1808
  • https://github.com/ipython/ipython/issues/9975
  • https://github.com/ipython/ipython/issues/9236
  • https://github.com/zeromq/libzmq/issues/1108
  • https://github.com/zeromq/libzmq/issues/1573
  • 为什么提出 pythonZeroMQ 客户端中某些失败假设的 AssertionError?
  • Python.exe 在运行 Jupyter 笔记本服务器时崩溃
  • Jupyter Notebook 为什么会崩溃?

对解决这个问题有什么建议吗?

Any suggestions on fixing this?


解决方案

解决方案是卸载一个名为 Networx 的程序.

The solution was to uninstall a program called Networx.

我自己不明白这个错误,但是我从链接这个帖子中得到解决方案的人:https://github.com/Microsoft/WSL/issues/1554#issuecomment-339743927

I don't understand the error myself but the person I got the solution from linked this post: https://github.com/Microsoft/WSL/issues/1554#issuecomment-339743927

相关文章