我尝试在不使用anaconda的情况下安装jupyter笔记本,但遇到了一些问题,特别是不断出现的红色“内核错误”
然而,通过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"
}
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
修复了它相关问题 更多 >
编程相关推荐