Anaconda和Jupyter笔记本电脑的新功能,但由于某些原因,我无法在运行python 3的环境中运行Jupyter Notebook。每次我的终端显示:
追踪(最近一次呼叫最后一次):
文件“/ anaconda3 / bin / jupyter-notebook”,第11行,in sys.exit(主())
文件“/anaconda3/lib/python3.6/site-packages/jupyter_core/application.py”,第267行,在launch_instance中 return super(JupyterApp,cls).launch_instance(argv = argv,** kwargs)
文件“/anaconda3/lib/python3.6/site-packages/traitlets/config/application.py”,第657行,在launch_instance中 app.initialize(argv的)
初始化时,文件“”,第2行 在catch_config_error中输入文件“/anaconda3/lib/python3.6/site-packages/traitlets/config/application.py”,第87行 return方法(app,* args,** kwargs)
文件“/anaconda3/lib/python3.6/site-packages/notebook/notebookapp.py”,第1296行,初始化 self.init_webapp()
文件“/anaconda3/lib/python3.6/site-packages/notebook/notebookapp.py”,第1093行,在init_webapp中 self.jinja_environment_options
文件“/anaconda3/lib/python3.6/site-packages/notebook/notebookapp.py”,第167行, init default_url,settings_overrides,jinja_env_options)
文件“/anaconda3/lib/python3.6/site-packages/notebook/notebookapp.py”,第259行,在init_settings中 nbextensions_path = jupyter_app.nbextensions_path,
文件“/anaconda3/lib/python3.6/site-packages/notebook/notebookapp.py”,第807行,在nbextensions_path中 来自IPython.paths import get_ipython_dir
文件“/anaconda3/lib/python3.6/site-packages/IPython/init.py”,第54行,在 来自.core.application导入应用程序
文件“/anaconda3/lib/python3.6/site-packages/IPython/core/application.py”,第25行, 来自IPython.core import release,crashhandler
文件“/anaconda3/lib/python3.6/site-packages/IPython/core/crashhandler.py”,第27行,在 来自IPython.core import ultratb
文件“/anaconda3/lib/python3.6/site-packages/IPython/core/ultratb.py”,第115行, 来自IPython.core import debugger
文件“/anaconda3/lib/python3.6/site-packages/IPython/core/debugger.py”,第37行,在 来自IPython.utils导入PyColorize
文件“/anaconda3/lib/python3.6/site-packages/IPython/utils/PyColorize.py”,第47行,in 来自.colorable import Colorable
文件“/anaconda3/lib/python3.6/site-packages/IPython/utils/colorable.py”,第12行,在 导入pygments
文件“/Library/Python/2.7/site-packages/pygments/init.py”,第46行 除了TypeError,错误: ^ SyntaxError:语法无效
有关如何纠正的任何建议?