Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
371 views
in Technique[技术] by (71.8m points)

python - Problem with running Kernel in IPython console

I have a problem with the Spyder software of Python(version 4.0.1) regarding the running kernels in the IPython Console. Accordingly, I have tried many ways to resolve the issue like running some commands in Anaconda prompt or set the settings to the default mode. I even updated the version of my anaconda and the spyder. Nevertheless, nothing has been changed and the issue still exists.

This is the error I am receiving:

Traceback (most recent call last): File "C:ProgramDataAnaconda3lib unpy.py", line 193, in _run_module_as_main "main", mod_spec) File "C:ProgramDataAnaconda3lib unpy.py", line 85, in _run_code exec(code, run_globals) File "C:ProgramDataAnaconda3libsite?packagesspyder_kernelsconsole__main__.py", line 11, in start.main() File "C:ProgramDataAnaconda3libsite?packagesspyder_kernelsconsolestart.py", line 287, in main import_spydercustomize() File "C:ProgramDataAnaconda3libsite?packagesspyder_kernelsconsolestart.py", line 39, in import_spydercustomize import spydercustomize File "C:ProgramDataAnaconda3libsite?packagesspyder_kernelscustomizespydercustomize.py", line 24, in from IPython.core.getipython import get_ipython File "C:ProgramDataAnaconda3libsite?packagesIPython__init__.py", line 56, in from .terminal.embed import embed File "C:ProgramDataAnaconda3libsite?packagesIPythonerminalembed.py", line 14, in from IPython.core.magic import Magics, magics_class, line_magic File "C:ProgramDataAnaconda3libsite?packagesIPythoncoremagic.py", line 20, in from . import oinspect File "C:ProgramDataAnaconda3libsite?packagesIPythoncoreoinspect.py", line 30, in from IPython.lib.pretty import pretty File "C:ProgramDataAnaconda3libsite?packagesIPythonlibpretty.py", line 82, in import datetime File "C:Usersmahkamdatetime.py", line 4 ^ SyntaxError: EOF while scanning triple?quoted string literal

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Looks like you have a quoting error

File "C:Usersmahkamdatetime.py", line 4 ^ SyntaxError: EOF while scanning triple?quoted string literal

Check out your datetime.py


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...