错误提示:ImportError: cannot import name 'create_prompt_application' from 'prompt_toolkit.shortcuts'

在打开jupyter 点击运行时,无法正常显示运行结果,打开命令窗口发现下列错误提示:

ImportError: cannot import name 'create_prompt_application' from 'prompt_toolkit.shortcuts'

代码无法运行

服务器无法连接

原因:prompt-toolkit版本不对

解决方法:安装符合要求的版本,打开新的命令窗口,输入pip3 install prompt-toolkit==1.0.15

重新运行jupyter代码即可正常运行

你可能感兴趣的:(错误提示:ImportError: cannot import name 'create_prompt_application' from 'prompt_toolkit.shortcuts')