出现“启动内核时发生错误”错误

时间:2019-11-15 03:36:16

标签: python spyder

目前,没有代码将通过Spyder运行。它在Python 3.7上运行。

An error ocurred while starting the kernel
Traceback (most recent call last):
File "/anaconda3/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/anaconda3/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/anaconda3/lib/python3.7/site‑packages/spyder_kernels/console/__main__.py", line 11, in 
start.main()
File "/anaconda3/lib/python3.7/site‑packages/spyder_kernels/console/start.py", line 279, in main
import_spydercustomize()
File "/anaconda3/lib/python3.7/site‑packages/spyder_kernels/console/start.py", line 39, in import_spydercustomize
import spydercustomize
File "/anaconda3/lib/python3.7/site‑packages/spyder_kernels/customize/spydercustomize.py", line 1, in 
a#
NameError: name 'a' is not defined

这是我收到的完整错误消息,不知道如何解决。

0 个答案:

没有答案