Trying to open a jupyter notebook file (.ipynb file)

with this command ipython notebook filename.ipynb then I am getting Below Error while using ipython..

Traceback (most recent call last):

File "c:\python\lib\runpy.py", line 193, in _run_module_as_main

"__main__", mod_spec)

File "c:\python\lib\runpy.py", line 85, in _run_code

exec(code, run_globals)

File "C:\Python\Scripts\ipython.exe\__main__.py", line 5, in

File "c:\python\lib\site-packages\IPython\__init__.py", line 55, in

from .terminal.embed import embed

File "c:\python\lib\site-packages\IPython\terminal\embed.py", line 16, in

from IPython.terminal.interactiveshell import TerminalInteractiveShell

File "c:\python\lib\site-packages\IPython\terminal\interactiveshell.py",

line 18, in

from prompt_toolkit.enums import DEFAULT_BUFFER, EditingMode

ModuleNotFoundError: No module named 'prompt_toolkit'

解决方案

Just got the same problem.

The solution for me was to pip uninstall prompt-toolkit and pip install prompt-toolkit. This uninstalled v1.0.5 and installed v2.0.4.

Logo

Agent 垂直技术社区,欢迎活跃、内容共建。

更多推荐