使用anaconda时jupyter报错: raise RuntimeError(‘This event loop is already running’); 这是由于ipykernel冲突导致的
解决办法:
建议在base环境中安装 ipykernel
conda install ipykernel
把报错环境中的ipykernel、jupyter都卸载了
conda activate py37
conda uninstall ipykernel
conda uninstall jupyter
然后安装最新版的
pip install jupyter
pip install ipykernel==5.5.6
在base里启动jupyter
conda activate base
jupyter notebook
在选择kernel的时候选择py37的就行了
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)