使用PIP安装美人鱼和ipykernel时的IPython版本冲突
为了在ipython笔记本中使用美人鱼,我必须根据 nb-Mermaid “ =“ nofollow noreferrer”> this 。不幸的是,它卸载了已安装的 ipython
软件包的先前版本,该版本实际上具有较新的版本。
Installing collected packages: IPython, nb-mermaid
Attempting uninstall: IPython
Found existing installation: ipython 8.2.0
Uninstalling ipython-8.2.0:
Successfully uninstalled ipython-8.2.0
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
ipykernel 6.11.0 requires ipython>=7.23.1, but you have ipython 3.2.3 which is incompatible.
Successfully installed IPython-3.2.3 nb-mermaid-0.1.0
它降级 ipython-8.2.0
ipython-3.2.3
。实际上,关于 this 。
然后,为了解决问题,我尝试升级 ipython
软件包。
Installing collected packages: ipython
Attempting uninstall: ipython
Found existing installation: ipython 3.2.3
Uninstalling ipython-3.2.3:
Successfully uninstalled ipython-3.2.3
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
nb-mermaid 0.1.0 requires IPython<4.0,>3.0, but you have ipython 8.2.0 which is incompatible.
Successfully installed ipython-8.2.0
nb-Mermaid
的依赖性也出现了另一个问题。作为摘要
软件包 | 日期 | 依赖 | 版本 |
---|---|---|---|
nb-Mermaid-0.1.0 |
2015年7月28日 |
ipython
|
&lt; 4.0 ,,<代码>&gt; 3.0 |
ipykernel-6.11.0 | 2022年3月31日 |
|
代码> |
表明,没有任何重叠版本可以同时安装 nb-Mermaid-0.1.0
和 ipykernel-6.11.1.0
。
是否有解决这个问题的解决方法?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
难怪 该项目 包含一些非常旧的依赖项:尚未触及近6年,已被作者抛弃。就我个人而言,我会完全避免使用它。
不幸的是,我在快速搜索中没有看到任何好的现代替代品。
如果您确实想使用它,我建议您使用
master
分支的最新提交,其中 对IPython
的<4.0
约束已删除:It's no wonder that that project includes some very old dependencies: it hasn't been touched in nearly 6 years and has been abandoned by the author. Personally, I'd avoid using it at all.
Unfortunately, I don't see any good modern alternatives on a quick search.
If you really want to use it, I suggest you use the latest commit from the
master
branch where the<4.0
constraint onIPython
was removed: