简体   繁体   English

Jupyter Notebook 从终端启动失败

[英]Jupyter Notebook launch fail from terminal

I am getting the following error message on launching Jupyter Notebook.我在启动 Jupyter Notebook 时收到以下错误消息。 I did conda update all already, but to no avail.我已经进行了 conda 更新,但无济于事。

Traceback (most recent call last):
  File "/Users/sparshbohra/opt/anaconda3/bin/jupyter-Notebook", line 7, in <module>
    from notebook.notebookapp import main
  File "/Users/sparshbohra/opt/anaconda3/lib/python3.7/site-packages/notebook/notebookapp.py", line 81, in <module>
    from .services.kernels.kernelmanager import MappingKernelManager, AsyncMappingKernelManager
  File "/Users/sparshbohra/opt/anaconda3/lib/python3.7/site-packages/notebook/services/kernels/kernelmanager.py", line 18, in <module>
    from jupyter_client.session import Session
  File "/Users/sparshbohra/opt/anaconda3/lib/python3.7/site-packages/jupyter_client/session.py", line 41, in <module>
    from jupyter_client.jsonutil import extract_dates, squash_dates, date_default
  File "/Users/sparshbohra/opt/anaconda3/lib/python3.7/site-packages/jupyter_client/jsonutil.py", line 10, in <module>
    from dateutil.parser import parse as _dateutil_parse
  File "/Users/sparshbohra/opt/anaconda3/lib/python3.7/site-packages/dateutil/parser.py", line 158
    l.append("%s=%s" % (attr, `value`))
                              ^
SyntaxError: invalid syntax

Would probably need a little mote information on how you're trying to launch it, on what system and what program etc. But assuming you have conda installed and the environment activated via conda activate my_env_path_name , you should be able to launch jupyter notebooks by typing jupyter notebook可能需要一些关于您如何尝试启动它、在什么系统和什么程序等方面的信息。但是假设您已经安装了 conda 并且通过conda activate my_env_path_name激活了环境,您应该能够通过键入启动 jupyter notebook jupyter notebook

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM