无法启动Jupiter Notebook的内核

时间:2019-12-07 07:05:08

标签: python jupyter

我对Jupiter笔记本电脑还很陌生。 因此,当我尝试创建新的python文件时,出现以下错误。

raceback (most recent call last):
  File "/Users/libinzhou/opt/anaconda3/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/Users/libinzhou/opt/anaconda3/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/libinzhou/opt/anaconda3/lib/python3.7/site-packages/ipykernel_launcher.py", line 15, in <module>
    from ipykernel import kernelapp as app
  File "/Users/libinzhou/opt/anaconda3/lib/python3.7/site-packages/ipykernel/__init__.py", line 2, in <module>
    from .connect import *
  File "/Users/libinzhou/opt/anaconda3/lib/python3.7/site-packages/ipykernel/connect.py", line 13, in <module>
    from IPython.core.profiledir import ProfileDir
  File "/Users/libinzhou/opt/anaconda3/lib/python3.7/site-packages/IPython/__init__.py", line 54, in <module>
    from .core.application import Application
  File "/Users/libinzhou/opt/anaconda3/lib/python3.7/site-packages/IPython/core/application.py", line 25, in <module>
    from IPython.core import release, crashhandler
  File "/Users/libinzhou/opt/anaconda3/lib/python3.7/site-packages/IPython/core/crashhandler.py", line 27, in <module>
    from IPython.core import ultratb
  File "/Users/libinzhou/opt/anaconda3/lib/python3.7/site-packages/IPython/core/ultratb.py", line 115, in <module>
    from IPython.core import debugger
  File "/Users/libinzhou/opt/anaconda3/lib/python3.7/site-packages/IPython/core/debugger.py", line 47, in <module>
    from pdb import Pdb as OldPdb
  File "/Users/libinzhou/opt/anaconda3/lib/python3.7/pdb.py", line 76, in <module>
    import code
  File "/Users/libinzhou/code.py", line 9, in <module>
    yf=scipy.fftpack.fft(y)
  File "/Users/libinzhou/opt/anaconda3/lib/python3.7/site-packages/scipy/fftpack/basic.py", line 274, in fft
    n = tmp.shape[axis]
IndexError: tuple index out of range

它一直持续到达到5。所以我想知道这是怎么回事?那是关于我的python还是Jupiter?

1 个答案:

答案 0 :(得分:0)

在上次更新之后,我遇到了这个问题,我只是以管理员身份运行“ Jupyter Notebook(Anaconda3)