【问题标题】:Jupyter Notebook : Could not find a kernel matching python 3Jupyter Notebook:找不到与 python 3 匹配的内核
【发布时间】:2020-10-24 02:39:34
【问题描述】:

我尝试在不使用 anaconda 的情况下安装 jupyter notebook,但遇到了一些问题,特别是不断出现的红色“内核错误”。

但是通过this 问题,我在一定程度上能够确定C:\Users\Ashish\AppData\Roaming\jupyter\kernels\python3kernel.json 文件中的默认pythonpath 用于anaconda 的问题,因此我使用where python 添加了我的python 路径。

在 cmd 上运行 jupyter notebook 并打开 .ipynb 文件会导致弹出窗口显示:Could not find a kernel matching Python 3. Please select a kernel,其中显示一个空的下拉列表。

我更新的 kernel.json 文件:

{
 "argv": [
  "C:\Users\Ashish\AppData\Local\Programs\Python\Python38\python.exe",
  "-m",
  "ipykernel_launcher",
  "-f",
  "{connection_file}"
 ],
 "display_name": "Python 3",
 "language": "python"
}

【问题讨论】:

    标签: python jupyter-notebook


    【解决方案1】:

    Nvm,在运行 jupyter kernelspec list 时出现错误:

    json.decoder.JSONDecodeError: Invalid \escape: line 3 column 6 (char 18)

    通过在 kernel.json 文件中使用 C:\\Users\\Ashish\\AppData\\Local\\Programs\\Python\\Python38\\python.exe 修复它

    【讨论】:

      猜你喜欢
      • 2023-03-08
      • 1970-01-01
      • 2021-11-11
      • 2017-01-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-01-27
      相关资源
      最近更新 更多