解决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


不知道什么原因导致一直报错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-

  • 5
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
引用\[1\]和\[2\]中提到了"Failed to start the Kernel"和"Bad file descriptor"的报错信息。这些错误通常与Jupyter Notebook或Jupyter Lab的内核启动有关。可能的原因是环境配置问题或者某些依赖项的错误。 解决这个问题的方法包括: 1. 确保你的环境配置正确。根据引用\[2\]中的报错信息,你可以尝试运行`conda init <SHELL_NAME>`来初始化你的shell,并在运行后关闭并重新打开你的shell。这样可以确保你的shell正确配置了conda的激活命令。 2. 检查你的依赖项是否正确安装。有时候,缺少或损坏的依赖项可能导致内核启动失败。你可以尝试重新安装Jupyter Notebook或Jupyter Lab,并确保所有依赖项都正确安装。 3. 检查你的代码是否有错误。有时候,代码中的错误可能导致内核启动失败。你可以尝试在一个干净的环境中运行简单的代码,看看是否仍然出现相同的错误。 需要注意的是,由于引用\[3\]中提到的错误与前两个引用中的错误不太相关,所以在解决"Failed to start the Kernel"和"Bad file descriptor"的问题时,不需要考虑引用\[3\]中的内容。 #### 引用[.reference_title] - *1* *2* [vscode中使用 jupyter notebook:Failed to start the Kernel](https://blog.csdn.net/weixin_51947245/article/details/123342135)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [安卓接阿里云OSS出现read failed: EBADF (Bad file descriptor)](https://blog.csdn.net/weixin_38620672/article/details/113886530)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值