解决Failed to start the Kernel.Bad file descriptor (D:\bld\zeromq_1629967000004\work\src\epoll.cpp:10
不知道什么原因导致一直报错Failed to start the Kernel.Bad file descriptor (D:\bld\zeromq_1629967000004\work\src\epoll.cpp:10,在vscode和jupyter notebook中运行都不行。先后删除了除base环境外的其他虚拟环境,也是不行。
后来参考这篇文章的方法,解决了!
https://blog.csdn.net/weixin_52096278/article/details/126568679
具体做法:
1、在vscode中安装jupyter插件
2、新建虚拟环境:conda create -n d2l
,后conda activate d2l
进入d2l虚拟环境
3、pip install jupyter -i https://pypi.tuna.tsinghua.edu.cn/simple
4、降低pyzmq版本
pip uninstall pyzm
pip install pyzmq==19.0.2
5、降低jupyter-client版本
pip uninstall jupyter-client
pip install jupyter-client==6.1.12
6、降低jupyter-