在安装完python以后提示下列错误
Traceback (most recent call last):
File "/usr/Python-3.6.5/lib/python3.6/runpy.py", line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/Python-3.6.5/lib/python3.6/runpy.py", line 142, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/Python-3.6.5/lib/python3.6/runpy.py", line 109, in _get_module_details
__import__(pkg_name)
File "/root/ipython-6.1.0/IPython/__init__.py", line 55, in <module>
from .terminal.embed import embed
File "/root/ipython-6.1.0/IPython/terminal/embed.py", line 16, in <module>
from IPython.terminal.interactiveshell import TerminalInteractiveShell
File "/root/ipython-6.1.0/IPython/terminal/interactiveshell.py", line 22, in <module>
from prompt_toolkit.shortcuts import create_prompt_application, create_eventloop, create_prompt_layout, create_output
ImportError: cannot import name 'create_prompt_application'
Traceback (most recent call last):
File "/usr/Python-3.6.5/lib/python3.6/runpy.py", line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/Python-3.6.5/lib/python3.6/runpy.py", line 142, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/Python-3.6.5/lib/python3.6/runpy.py", line 109, in _get_module_details
__import__(pkg_name)
File "/root/ipython-6.1.0/IPython/__init__.py", line 55, in <module>
from .terminal.embed import embed
File "/root/ipython-6.1.0/IPython/terminal/embed.py", line 16, in <module>
from IPython.terminal.interactiveshell import TerminalInteractiveShell
File "/root/ipython-6.1.0/IPython/terminal/interactiveshell.py", line 22, in <module>
from prompt_toolkit.shortcuts import create_prompt_application, create_eventloop, create_prompt_layout, create_output
ImportError: cannot import name 'create_prompt_application'

