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

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

然而,通过这个问题,我在某种程度上能够识别出文件中的默认 pythonpathkernel.jsonC:\Users\Ashish\AppData\Roaming\jupyter\kernels\python3针对 anaconda 的问题,因此我使用 .add 添加了我的 python 路径where python

jupyter notebookcmd 上运行并打开 .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"

}


慕桂英3389331
浏览 81回答 1
1回答

30秒到达战场

Nvm,运行时jupyter kernelspec list显示错误:json.decoder.JSONDecodeError: Invalid \escape: line 3 column 6 (char 18)C:\\Users\\Ashish\\AppData\\Local\\Programs\\Python\\Python38\\python.exe通过在kernel.json文件中使用来修复它
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Python