python cannot import name_python遇到错误ImportError: cannot import name 'create_prompt_application'...

alex@ubuntusys:~$python3-mipykernelinstall--userTraceback(mostrecentcalllast):File"/usr/lib/python3.6/runpy.py",line183,in_run_module_as_mainmod_name,mod_spec,code=_get_m...

alex@ubuntusys:~$ python3 -m ipykernel install --user

Traceback (most recent call last):

File "/usr/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/lib/python3.6/runpy.py", line 142, in _get_module_details

return _get_module_details(pkg_main_name, error)

File "/usr/lib/python3.6/runpy.py", line 109, in _get_module_details

__import__(pkg_name)

File "/usr/local/lib/python3.6/dist-packages/ipykernel/__init__.py", line 2, in

from .connect import *

File "/usr/local/lib/python3.6/dist-packages/ipykernel/connect.py", line 13, in

from IPython.core.profiledir import ProfileDir

File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 49, in

from .terminal.embed import embed

File "/usr/lib/python3/dist-packages/IPython/terminal/embed.py", line 18, in

from IPython.terminal.interactiveshell import TerminalInteractiveShell

File "/usr/lib/python3/dist-packages/IPython/terminal/interactiveshell.py", line 20, in

from prompt_toolkit.shortcuts import create_prompt_application, create_eventloop, create_prompt_layout, create_output

ImportError: cannot import name 'create_prompt_application'

有没有大神

展开

你可能感兴趣的:(python,cannot,import,name)