【问题标题】:Running cells with 'Python 3.9.5 64-bit' requires ipykernel installed or requires an update使用“Python 3.9.5 64-bit”运行单元需要安装 ipykernel 或需要更新
【发布时间】:2021-09-06 15:57:18
【问题描述】:

如果我从 home 目录切换到其他任何位置,我在 Visual Studio 代码中收到错误 Running cells with 'Python 3.9.5 64-bit' requires ipykernel installed or requires an update.
例如,当我从主目录运行此文件时一切正常

当我打开 auto_script 文件夹时,同一个文件会出错

【问题讨论】:

    标签: python visual-studio-code ipython


    【解决方案1】:

    检查图片的左下角。在第一个中,您使用的是 conda 环境,但在第二个中选择了默认系统 python。您应该激活或选择您的 conda 环境或将 ipytkernel 安装为系统默认值。

    【讨论】:

      猜你喜欢
      • 2021-12-15
      • 2021-03-07
      • 2019-03-14
      • 2022-11-11
      • 2020-04-25
      • 2011-08-05
      • 2023-03-22
      • 1970-01-01
      • 2014-11-19
      相关资源
      最近更新 更多