昨晚卸载了以前安装的python3,安装了anaconda。今早运行jupyter notebook,发现有问题:
运行速度特别慢;
一打开文件,就显示kernel error
解决方法如下:
重新安装jupyter notebook
打开anaconda prompt
卸载:conda uninstall jupyter notebook
安装:conda uninstall jupyter notebook
设置kernel
打开anaconda prompt
输入jupyter kernelspec list
根据显示结果,找到python3对应的文件夹,打开一个叫kernel.json的文件,发现里面使用的python安装路径不正确。
更改kernel.json中的python安装路径,使其指向anaconda中的python.exe。
经过以上处理后,不仅kernel error的问题解决了,而且jupyter notebook打开的速度变快了,可能是因为昨晚安装的jupyter ntoebook不适合我的电脑的缘故。