【问题标题】:Unable to use jupyter notebook in VScode无法在 VScode 中使用 jupyter notebook
【发布时间】:2021-07-08 04:20:06
【问题描述】:

当我在 VScode 中运行 jupyter notebook 时,它会显示错误消息。有人可以告诉我如何安装 ipykernel。非常感谢!

第一行说“Python 2.7.16 64-bit 需要安装 ipykernel。” 当我点击蓝色图标中的安装时,它会显示无法安装 ipykernel。

而vscode无法连接内核:Python 2.7.16 64-bit enter image description here

【问题讨论】:

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


    【解决方案1】:

    请在 VS Code 终端手动安装此内核“ipykernel”:(pip install ipykernel)

    如果您有多个python环境,请确保您当前使用的VS Code终端是您需要的环境(“Python 2.7.16 64-bit”)。 (查看python:python --versionpip --version

    如果仍然无法安装“ipykernel”,请尝试使用另一个python environment或重新安装python

    参考:Working with Jupyter Notebooks in Visual Studio Code

    【讨论】:

      猜你喜欢
      • 2020-01-25
      • 2020-07-13
      • 2022-11-02
      • 2021-02-08
      • 2020-07-28
      • 2021-10-13
      • 2020-03-26
      • 1970-01-01
      • 2022-01-11
      相关资源
      最近更新 更多