启动内核时发生错误

时间:2019-01-21 23:07:10

标签: python python-3.x anaconda spyder

我一直看到此消息。

An error ocurred while starting the kernel
Traceback (most recent call last):
File "C:\Users\Excel\Anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Users\Excel\Anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\Excel\Anaconda3\lib\site‑packages\spyder_kernels\console\__main__.py", line 11, in 
start.main()
File "C:\Users\Excel\Anaconda3\lib\site‑packages\spyder_kernels\console\start.py", line 279, in main
import_spydercustomize()
File "C:\Users\Excel\Anaconda3\lib\site‑packages\spyder_kernels\console\start.py", line 39, in import_spydercustomize
import spydercustomize
File "C:\Users\Excel\Anaconda3\lib\site‑packages\spyder_kernels\customize\spydercustomize.py", line 5, in 
from utilities import visualize_classifier
ModuleNotFoundError: No module named 'utilities'

我尝试了以下方法。 。

尝试在anaconda命令提示符下键入以下3行:

conda create -n spyder python=3.7 spyder
activate spyder
spyder

也。 。 。

pip install --upgrade spyder

不幸的是,到目前为止没有任何工作。是否有某种主复位来强制此启动正确?非常感谢。

1 个答案:

答案 0 :(得分:1)

尝试卸载spyderspyder-kernels,然后运行以重新安装。

conda install spyder-kernels