2017-05-26 3 views
3

Ich habe kürzlich von IPython 5.x auf 6.0 über condo update ipython aktualisiert. Allerdings bekomme ich einen Absturz im Kernel:Beim Upgrade von IPython 5.x auf 6.0 tritt ein Absturz aufgrund von IPython.utils.warn auf.

Traceback (most recent call last): 
    File "//anaconda/lib/python3.5/runpy.py", line 170, in _run_module_as_main 
    "__main__", mod_spec) 
    File "//anaconda/lib/python3.5/runpy.py", line 85, in _run_code 
    exec(code, run_globals) 
    File "//anaconda/lib/python3.5/site-packages/ipykernel/__main__.py", line 2, in <module> 
    from ipykernel import kernelapp as app 
    File "//anaconda/lib/python3.5/site-packages/ipykernel/kernelapp.py", line 37, in <module> 
    from .ipkernel import IPythonKernel 
    File "//anaconda/lib/python3.5/site-packages/ipykernel/ipkernel.py", line 15, in <module> 
    from .zmqshell import ZMQInteractiveShell 
    File "//anaconda/lib/python3.5/site-packages/ipykernel/zmqshell.py", line 46, in <module> 
    from IPython.utils.warn import error 
ImportError: No module named 'IPython.utils.warn' 
[I 18:35:28.928 NotebookApp] KernelRestarter: restarting kernel (1/5) 

Offenbar ist das Problem, dass IPython.utils.warn veraltet war und has now been removed ab Version 6.0.0. Wie kann ich das beheben?

Hinweis: keine der bearbeiteten folgenden:

pip install --upgrade ipython 
pip install --upgrade jupyter 
pip install --upgrade --no-deps --force-reinstall ipython 
pip install --upgrade --no-deps --force-reinstall jupyter 

Antwort

4

Ich hatte das gleiche Problem. Die folgende Zeile behebt das Problem für mich:

Ich weiß nicht, warum das nicht automatisch getan wird.

0

+1 gleiches Problem.

Behelfslösung war auf die neueste verfügbare Version 5.x von ipython (derzeit 5.3.0 gefunden via conda search ipython) herabzustufen:

conda install ipython=5.3.0 

Jetzt Jupyter Notebook-Kernel wieder starten kann.

Verwandte Themen