【问题标题】:Jupyter notebook not working in VScode because of ipykernel由于 ipykernel,Jupyter 笔记本无法在 VScode 中工作
【发布时间】:2022-12-17 00:23:17
【问题描述】:

我目前正在尝试在 VScode 中使用 jupyter notebook。我已经下载了 Python 和 Juypter 笔记本扩展。每当我尝试运行代码时,都会出现提示:

单击安装,我收到此错误消息:正在安装 ipykernel:警告:重试(重试(总计=1,连接=无, re... 模块不可用。”)': /simple/ipykernel/

它还显示此消息:Running cells with 'Python 3.9.12 ('work_env': venv)' requires ipykernel package。 运行以下命令将“ipykernel”安装到 Python 环境中。 命令:'c:/EmgProj/work_env/Scripts/python.exe -m pip install ipykernel -U --force-reinstall'

如果我在终端中使用上面建议的代码,它会成功安装扩展,但是当我尝试运行它时它仍然说我没有 ipykernel。有人可以帮忙吗?

【问题讨论】:

  • 您是否在正确的环境中安装?可以参考这个issue

标签: python visual-studio-code jupyter-notebook


【解决方案1】:

我和你一样的问题,重装ipykernel还是不行,终于找到了

pip 卸载 pyzmq

pip 安装 pyzmq

作品。 以下链接可能会有所帮助:

Failed to change the Jupyter Kernel in VS Code

I get an error while installing ipykernel on vscode

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-01-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-12-06
    • 2019-10-21
    • 1970-01-01
    相关资源
    最近更新 更多