Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/279.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 获得;启动内核时出错";错误_Python_Spyder - Fatal编程技术网

Python 获得;启动内核时出错";错误

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

目前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", 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,抱歉。