The kernel failed to start due to the missing module ‘ipykernel_launcher‘. Consider installing this

编程知识 更新时间:2023-05-02 05:26:28

安装 ptyprocess、ipykernel、pyzmq

  • 问题描述
  • 原文链接
  • 解决方法

问题描述

The kernel failed to start due to the missing module 'ipykernel_launcher'. 
Consider installing this module. 
View Jupyter [log](command:jupyter.viewOutput) for further details.

下面的弹窗中点击**《获取更多》**就好了

原文链接

https://github/microsoft/vscode-jupyter/wiki/Failure-to-start-Kernel-due-to-Modules-not-installed

其实答案就在谜面上,我是在vscode中用jupyter写pytorch出现这个错误。
但是我的网络访问GitHub时不稳定,总是跳404.
导致我错过了很多次

解决方法

# if using a non-conda environment
python -m pip install <xyz> -U --fore-reinstall
# If using a conda environment
conda install --name <environment name> <xyz> --update-deps --force-reinstall

比如你是conda来操作环境,你需要更新ipykernel
你可以这么写

conda install -n 环境名字 --update-deps ipykernel

这是原网页

更多推荐

The kernel failed to start due to the missing module ‘ipykernel_launcher‘. Consi

本文发布于:2023-04-26 06:08:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/02d6cf690bde46407809d3a8ad06bbdb.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:start   due   kernel   failed   ipykernel_launcher

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!

  • 104419文章数
  • 26214阅读数
  • 0评论数