关于使用jupyter notebook时报错,闪退

报错 : Bad file descriptor (C:\projects\libzmq\src\epoll.cpp:100)

例如下图关于使用jupyter notebook时报错,闪退_第1张图片

问题:这是因为当你安装jupyterlab 或者jupyter notebook的时候,会自动安装ipykernel, 然后自动安装了高版本的pyzmq,此问题是pyzmq版本问题

所以我们只要将pyzmq新版本的卸载,重新安装19.0.2版本的ptzmq

解决方式:

在终端输入命令:

pip uninstall pyzmq

pip install pyzmq==19.0.2 --user

关于使用jupyter notebook时报错,闪退_第2张图片

就Ok了

参考博客:使用jupyter崩溃的问题:bad file descriptor - 帅帅的飞猪 - 博客园 (cnblogs.com)

 

你可能感兴趣的:(机器学习中遇到的问题,jupyter,ide,python)