简体   繁体   English

Windows 10上的Jupyter笔记本python崩溃

[英]Jupyter notebook python crash on Windows 10

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. 我见过其他几个人在一年多的时间里遇到同样的问题。

The issue: 问题:

Windows 10 Pro build 15063.674 Windows 10 Pro build 15063.674

I'm using the latest Anaconda 5 build with Python 3.6.2 and all the packages are updated to most recent. 我正在使用最新的Anaconda 5版本和Python 3.6.2,并且所有软件包都更新到最新版本。

Running Jupyter Notebook, after some time, python will crash with a dialog "python has stopped working". 运行Jupyter Notebook,一段时间后,python将崩溃,对话框“python已停止工作”。 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. 它超过15分钟,但我也在几个小时后崩溃了。

The crash happens whether or not the notebook is in use, but most of the time, it's been while it's idle. 无论笔记本电脑是否正在使用,都会发生崩溃,但大多数情况下,它一直处于空闲状态。

The console contains several lines like this: 控制台包含几行,如下所示:

Assertion failed: Connection reset by peer (bundled\zeromq\src\signaler.cpp:298)

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. 老实说,除了Windows自动更新之外,我不知道会发生什么变化。

What I've tried: 我尝试过的:

  • updating anaconda 更新anaconda
  • updating all packages 更新所有包
  • updating python 更新python
  • full clean removal then reinstall of anaconda, python, and all packages 完全干净删除然后重新安装anaconda,python和所有包
  • updating everything again 再次更新一切
  • removing pyzmq and Jupyter then reinstalling 删除pyzmq和Jupyter然后重新安装
  • disabling Windows Defender 禁用Windows Defender
  • attempted to revert pyzmq on a long shot to 13.1.0 but the build failed 试图将远射上的pyzmq恢复到13.1.0,但是构建失败了
  • I've also tried using both conda and pip for installing/removing 我也尝试过使用condapip进行安装/删除

Threads I've read: 我读过的主题:

Any suggestions on fixing this? 有关修复此问题的建议吗?

From the first issue thread you linked , it looks like this issue is with ZeroMQ, with little hope for resolution. 您链接第一个问题线程看,这个问题与ZeroMQ相似,对解决方案的希望渺茫。 One poster (UniversalAE) in that thread seemed to have success with replacing ZeroMQ with RabbitMQ. 该线程中的一张海报(UniversalAE)似乎取得了成功,用RabbitMQ取代了ZeroMQ。 Absent an update to ZeroMQ that resolves this, or any specific requirement for ZeroMQ, I would advise doing the same, ie swap out ZeroMQ for RabbitMQ. 如果没有ZeroMQ的更新来解决这个问题,或者对ZeroMQ的任何特定要求,我建议做同样的事情,即换掉RabbitMQ的ZeroMQ。

The solution was to uninstall a program called Networx. 解决方案是卸载名为Networx的程序。

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 我自己并不理解这个错误,但是我从这个帖子中得到了解决方案的人: https//github.com/Microsoft/WSL/issues/1554#issuecomment-339743927

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

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