You need to enable JavaScript to run this app. VS Code连接本地8888 Jupyter报Python 3.8.2 64位内核不可用求助
优惠活动
大模型
产品
解决方案
定价
更多

VS Code连接本地8888 Jupyter报Python 3.8.2 64位内核不可用求助

VS Code Jupyter 插件连接故障记录

故障现象

  • 无法连接本地 http://localhost:8888/ 部署的Jupyter服务
  • 触发报错:Kernel Python 3.8.2 64-bit is not usable
  • 可通过插件正常连接Jupyter服务器、打开其他Notebook文档,仅打开目标Notebook时会触发该报错
  • 目标Notebook所在目录关联Git仓库,将仓库克隆到其他路径下打开,故障依旧存在
  • 已向VS Code Jupyter插件官方仓库提交对应问题工单
  • 已补充插件输出日志内容用于排查

配置对比

可正常运行的Notebook对应 settings.json 配置

{
  "python.pythonPath": "/usr/bin/python3"
}

存在故障的Notebook对应 settings.json 配置

{
  "files.associations": {
    "deque": "cpp",
    "string": "cpp",
    "vector": "cpp"
  },
  "python.pythonPath": "/usr/bin/python3"
}

插件输出日志详情

Error 2021-02-24 14:19:05: DataScience Error [i [Error]: 
at new t.WrappedError (/home/ubuntu/.vscode/extensions/ms-toolsai.jupyter-2021.2.576440691/out/client/extension.js:1:153031)
at /home/ubuntu/.vscode/extensions/ms-toolsai.jupyter-2021.2.576440691/out/client/extension.js:32:654636
at processTicksAndRejections (internal/process/task_queues.js:97:5)

Error: Kernel Python 3.8.2 64-bit is not usable. Check the Jupyter output tab for more information.
at w.createNewKernelSession (/home/ubuntu/.vscode/extensions/ms-toolsai.jupyter-2021.2.576440691/out/client/extension.js:49:554995)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async w.connect (/home/ubuntu/.vscode/extensions/ms-toolsai.jupyter-2021.2.576440691/out/client/extension.js:49:554404)
at async m.startNew (/home/ubuntu/.vscode/extensions/ms-toolsai.jupyter-2021.2.576440691/out/client/extension.js:49:549756)
at async _.connect (/home/ubuntu/.vscode/extensions/ms-toolsai.jupyter-2021.2.576440691/out/client/extension.js:49:520500)
at async /home/ubuntu/.vscode/extensions/ms-toolsai.jupyter-2021.2.576440691/out/client/extension.js:32:653463] {
  category: 'invalidkernel',
  originalException: [c [Error]: Kernel Python 3.8.2 64-bit is not usable. Check the Jupyter output tab for more information.
    at w.createNewKernelSession (/home/ubuntu/.vscode/extensions/ms-toolsai.jupyter-2021.2.576440691/out/client/extension.js:49:554995)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async w.connect (/home/ubuntu/.vscode/extensions/ms-toolsai.jupyter-2021.2.576440691/out/client/extension.js:49:554404)
    at async m.startNew (/home/ubuntu/.vscode/extensions/ms-toolsai.jupyter-2021.2.576440691/out/client/extension.js:49:549756)
    at async _.connect (/home/ubuntu/.vscode/extensions/ms-toolsai.jupyter-2021.2.576440691/out/client/extension.js:49:520500)
    at async /home/ubuntu/.vscode/extensions/ms-toolsai.jupyter-2021.2.576440691/out/client/extension.js:32:653463] {
    category: 'invalidkernel',
    kernelConnectionMetadata: {
      kind: 'startUsingKernelSpec',
      interpreter: [Object],
      kernelSpec: [a]
    }
  }
}
> /usr/bin/python3 ~/.vscode/extensions/ms-toolsai.jupyter-2021.2.576440691/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> /usr/bin/python3 ~/.vscode/extensions/ms-toolsai.jupyter-2021.2.576440691/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v

内容的提问来源于stack exchange,提问作者Foysal Khandakar Joy

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.11.02 07:15:04