繁体   English   中英

Jupyter Notebook:找不到与 python 3 匹配的内核

[英]Jupyter Notebook : Could not find a kernel matching python 3

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

然而,通过这个问题,我在某种程度上能够确定C:\\Users\\Ashish\\AppData\\Roaming\\jupyter\\kernels\\python3kernel.json文件中的默认 pythonpath 是用于 anaconda 的问题,所以我添加了我的 python 路径使用where 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"
}

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 kernel.json

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM