安装运行jupyter notebook时报错:ModuleNotFoundError: No module named 'prompt_toolkit.formatted_text'...

本文记录了在Mac上使用pip3升级Prompt-Toolkit到2.0.4版本时遇到的依赖冲突问题,详细描述了解决py2neo和jupyter-console不兼容问题的过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

pip3 install --upgrade prompt-toolkit==2.0.4

 

abc:数据分析 mac126$ pip3 install --upgrade prompt-toolkit==2.0.4
Collecting prompt-toolkit==2.0.4
  Downloading https://files.pythonhosted.org/packages/91/ef/f4010d53dbd736c47e78d2226b12ab446bbe0ce66616d0b92d51d8a15fe4/prompt_toolkit-2.0.4-py3-none-any.whl (328kB)
    100% |████████████████████████████████| 337kB 120kB/s 
Requirement already satisfied, skipping upgrade: wcwidth in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from prompt-toolkit==2.0.4) (0.1.7)
Requirement already satisfied, skipping upgrade: six>=1.9.0 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from prompt-toolkit==2.0.4) (1.11.0)
py2neo 4.1.3 has requirement prompt_toolkit==1.0.15, but you'll have prompt-toolkit 2.0.4 which is incompatible.
Installing collected packages: prompt-toolkit
  Found existing installation: prompt-toolkit 1.0.15
    Uninstalling prompt-toolkit-1.0.15:
      Successfully uninstalled prompt-toolkit-1.0.15
问题原因:

jupyter-console 5.2.0 has requirement prompt-toolkit<2.0.0,>=1.0.0, but you'll have

prompt-toolkit 2.0.4 which is incompatible.

 

转载于:https://www.cnblogs.com/liangliangzz/p/10287576.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值