首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何删除间接依赖的包

如何删除间接依赖的包
EN

Unix & Linux用户
提问于 2022-07-22 09:15:32
回答 1查看 40关注 0票数 1

我想删除/usr/bin/jupyter二进制文件的包。因此:

代码语言:javascript
复制
$ pacman -Qo /usr/bin/jupyter
/usr/bin/jupyter is owned by python-jupyter_core 4.11.0-1
$ pacman -R python-jupyter_core
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing python-jupyter_core breaks dependency 'python-jupyter_core' required by jupyter-nbformat
:: removing python-jupyter_core breaks dependency 'python-jupyter_core' required by python-jupyter_client

这告诉我,这个包是由另一个包安装的。然后,我使用pactree来找出以下几种:

代码语言:javascript
复制
$ pactree -r python-jupyter_core
python-jupyter_core
├─jupyter-nbformat
│ └─jupyter-nbclient
└─python-jupyter_client
  ├─jupyter-nbclient
  └─python-ipykernel
    └─python-jupyter_client

但是,当我试图删除树python-jupyter_client的开始时,我再次得到一个依赖项警告:

代码语言:javascript
复制
$ pacman -R python-jupyter_client
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing python-jupyter_client breaks dependency 'python-jupyter_client' required by jupyter-nbclient
:: removing python-jupyter_client breaks dependency 'python-jupyter_client' required by python-ipykernel

How我可以删除导致安装/usr/bin/jupyter**的包(S)吗?**

EN

回答 1

Unix & Linux用户

发布于 2022-07-22 09:33:47

看来,我使用pipsudo一起安装了D2(这不是一个明智的想法)。因此:

代码语言:javascript
复制
$ sudo pip uninstall jupyter-core

就是答案。

票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/710848

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档