我想删除/usr/bin/jupyter二进制文件的包。因此:
$ 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来找出以下几种:
$ 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的开始时,我再次得到一个依赖项警告:
$ 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-ipykernelHow我可以删除导致安装/usr/bin/jupyter**的包(S)吗?**
发布于 2022-07-22 09:33:47
看来,我使用pip和sudo一起安装了D2(这不是一个明智的想法)。因此:
$ sudo pip uninstall jupyter-core就是答案。
https://unix.stackexchange.com/questions/710848
复制相似问题