Traceback (most recent call last):
File "/usr/local/bin/jupyter-console", line 6, in <module>
from jupyter_console.app import main
File "/usr/local/lib/python3.6/dist-packages/jupyter_console/app.py", line 26, in <module>
from jupyter_console.ptshell import ZMQTerminalInteractiveShell
File "/usr/local/lib/python3.6/dist-packages/jupyter_console/ptshell.py", line 21, in <module>
from IPython.core import page
File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 49, in <module>
from .terminal.embed import embed
File "/usr/lib/python3/dist-packages/IPython/terminal/embed.py", line 18, in <module>
from IPython.terminal.interactiveshell import TerminalInteractiveShell
File "/usr/lib/python3/dist-packages/IPython/terminal/interactiveshell.py", line 20, in <module>
from prompt_toolkit.shortcuts import create_prompt_application, create_eventloop, create_prompt_layout, create_output
ImportError: cannot import name 'create_prompt_application'
重新装IPython可以我的解决问题,命令如下:
sudo pip3 uninstall ipython
sudo pip3 install ipython