prompt-toolkit requirement conflict
See original GitHub issuejupyter
requires jupyter-console
and ipykernel
. jupyter-console==5.2.0
(the most recent) requires prompt-toolkit<2.0.0
, but ipykernel==5.0.0
(the most recent) requires prompt-toolkit>=2.0.0
. prompt-toolkit-1.0.15
ends up being installed, which results in
>python -c "import ipykernel"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "...\lib\site-packages\ipykernel\__init__.py", line 2, in <module>
from .connect import *
File "...\lib\site-packages\ipykernel\connect.py", line 13, in <module>
from IPython.core.profiledir import ProfileDir
File "...\lib\site-packages\IPython\__init__.py", line 55, in <module>
from .terminal.embed import embed
File "...\lib\site-packages\IPython\terminal\embed.py", line 16, in <module>
from IPython.terminal.interactiveshell import TerminalInteractiveShell
File "...\lib\site-packages\IPython\terminal\interactiveshell.py", line 20, in <module>
from prompt_toolkit.formatted_text import PygmentsTokens
ImportError: No module named 'prompt_toolkit.formatted_text'
This occurs when doing pip install jupyter
, in Python 3.5. It is triggered by the new release of ipykernel 5.0.0
.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:30
- Comments:10
Top Results From Across the Web
Asking for input (prompts) - Python Prompt Toolkit 3.0
The reason for this is that the up and down key bindings would conflict otherwise. ... If however, Vi binding are required, just...
Read more >Problems upgrading Ipython (prompt_toolkit incompatibilities)
There appears to be a conflict in dependencies in different parts of the jupyter install. We may have to wait a day or...
Read more >python-prompt-toolkit.pdf - Read the Docs
prompt_toolkit is a library for building powerful interactive command line and terminal applications in Python. It can be a very advanced pure ...
Read more >ipython does not work with latest version of prompt-toolkit
pip3 install --upgrade prompt-toolkit PyGObject youtube-dl. This gave: ... ipython 6.4.0 has requirement prompt-toolkit<2.0.0,>=1.0.15, ... is a conflict.
Read more >Incompatible Version of prompt-toolkit - M220P - MongoDB
The requirements.txt seems to bundle an incompatible version of prompt-toolkit so I face the following warning when I pip the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I had to do the following:
pip uninstall ipython
pip install ipython==6.5.0
ipython==6.5.0
works withprompt-toolkit-1.0.15
which gets installed when you dopip install jupyter
.The problem is with the recent ipykernel update. A temporary fix could be:
pip uninstall ipykernel
pip install ipykernel==4.8.0