【发布时间】:2020-10-24 02:39:34
【问题描述】:
我尝试在不使用 anaconda 的情况下安装 jupyter notebook,但遇到了一些问题,特别是不断出现的红色“内核错误”。
但是通过this 问题,我在一定程度上能够确定C:\Users\Ashish\AppData\Roaming\jupyter\kernels\python3 中kernel.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"
}
【问题讨论】: