[英]Jupyter Notebook : Could not find a kernel matching python 3
I tried installing jupyter notebook without using anaconda and ran into some issues, specifically the red 'Kernel Error' that kept showing up.我尝试在不使用 anaconda 的情况下安装 jupyter notebook,但遇到了一些问题,特别是不断出现的红色“内核错误”。
However through this ques I was somewhat able to identify the issue where the default pythonpath in the kernel.json
file in C:\\Users\\Ashish\\AppData\\Roaming\\jupyter\\kernels\\python3
was for anaconda, so I added my python path using where python
.然而,通过这个问题,我在某种程度上能够确定C:\\Users\\Ashish\\AppData\\Roaming\\jupyter\\kernels\\python3
中kernel.json
文件中的默认 pythonpath 是用于 anaconda 的问题,所以我添加了我的 python 路径使用where python
。
On running jupyter notebook
on cmd and opening a .ipynb file causes a popup to show : Could not find a kernel matching Python 3. Please select a kernel
, which shows an empty drop down list.在 cmd 上运行jupyter notebook
并打开 .ipynb 文件会导致弹出窗口显示: Could not find a kernel matching Python 3. Please select a kernel
,其中显示一个空的下拉列表。
My Updated kernel.json file:我更新的 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, on running jupyter kernelspec list
showed an error: Nvm,在运行jupyter kernelspec list
显示错误:
json.decoder.JSONDecodeError: Invalid \\escape: line 3 column 6 (char 18)
Fixed it by using C:\\\\Users\\\\Ashish\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Python38\\\\python.exe
in the kernel.json
file通过在kernel.json
文件中使用C:\\\\Users\\\\Ashish\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Python38\\\\python.exe
kernel.json
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.