我在控制台上收到消息: error message
希望任何人都能理解或看到类似的错误。 我尝试重新启动,更新,但没有执行任何操作
Traceback (most recent call last):
File "/Users/mac/anaconda3/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/Users/mac/anaconda3/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/Users/mac/anaconda3/lib/python3.7/site‑packages/spyder_kernels/console/__main__.py", line 11, in
start.main()
File "/Users/mac/anaconda3/lib/python3.7/site‑packages/spyder_kernels/console/start.py", line 279, in main
import_spydercustomize()
File "/Users/mac/anaconda3/lib/python3.7/site‑packages/spyder_kernels/console/start.py", line 39, in import_spydercustomize
import spydercustomize
File "/Users/mac/anaconda3/lib/python3.7/site‑packages/spyder_kernels/customize/spydercustomize.py", line 27, in
from IPython.core.getipython import get_ipython
File "/Users/mac/anaconda3/lib/python3.7/site‑packages/IPython/__init__.py", line 55, in
from .terminal.embed import embed
File "/Users/mac/anaconda3/lib/python3.7/site‑packages/IPython/terminal/embed.py", line 17, in
from IPython.terminal.ipapp import load_default_config
File "/Users/mac/anaconda3/lib/python3.7/site‑packages/IPython/terminal/ipapp.py", line 28, in
from IPython.core.magics import (
File "/Users/mac/anaconda3/lib/python3.7/site‑packages/IPython/core/magics/__init__.py", line 18, in
from .code import CodeMagics, MacroToEdit
File "/Users/mac/anaconda3/lib/python3.7/site‑packages/IPython/core/magics/code.py", line 23, in
from urllib.request import urlopen
File "/Users/mac/anaconda3/lib/python3.7/urllib/request.py", line 88, in
import http.client
File "/Users/mac/anaconda3/lib/python3.7/http/client.py", line 72, in
import email.message
File "/Users/mac/anaconda3/lib/python3.7/email/message.py", line 10, in
import uu
File "/Users/mac/uu.py", line 9, in
y=int(input('guess the number '))
EOFError: EOF when reading a line
答案 0 :(得分:0)
(此处为 Spyder维护程序)发生此错误是因为您使用与Python标准库模块相同的名称命名了其中一个文件(在本例中为/Users/mac/uu.py
)(在本例中为uu模块)。
您可以通过将/Users/mac/uu.py
删除或重命名为其他名称来解决此问题。