Python 获得;启动内核时出错";错误
目前Spyder不会运行任何代码。它在Python3.7上运行Python 获得;启动内核时出错";错误,python,spyder,Python,Spyder,目前Spyder不会运行任何代码。它在Python3.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", l
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
这是我收到的完整错误消息,我不知道如何解决它。请同时提供python代码片段。(此处为Spyder maintainer)似乎是您不知何故编写并损坏了文件
spydercustomize.py
,该文件属于我们最重要的软件包之一。所以现在你必须重新安装Anaconda,抱歉。