我有以下要删除的包(2xTab):
$ jupyter-
jupyter-bundlerextension jupyter-nbconvert jupyter-nbextension jupyter-notebook jupyter-qtconsole jupyter-serverextension jupyter-trust 而pip说他们不在那里:
$ pip3 freeze | grep jupyter
$ pip freeze | grep jupyter当我尝试删除它们中的任何一个时,我得到了相同的结果:
sudo -H pip3 uninstall jupyter-notebook
Cannot uninstall requirement jupyter-notebook, not installed但是例如:
$ which jupyter-notebook
/usr/local/bin/jupyter-notebook那么如何删除这些包呢?
发布于 2017-10-29 23:03:29
运行以下命令
pip3 show jupyter它会给出一些输出,比如
Name: jupyter
Version: 1.0.0
Summary: Jupyter metapackage. Install all the Jupyter components in one go.
Home-page: http://jupyter.org
Author: Jupyter Development Team
Author-email: jupyter@googlegroups.org
License: BSD
Location: /usr/local/lib/python3.5/dist-packages
Requires: ipykernel, ipywidgets, qtconsole, jupyter-console, notebook, nbconvert现在将输出中的REQUIRE值复制到剪贴板上,这是jupyter所需的包
然后运行以下命令
sudo pip3 uninstall -y jupyter [paste the copied content ]这将等同于
sudo pip3 uninstall -y jupyter ipykernel ipywidgets qtconsole jupyter-console notebook nbconvert确保在粘贴内容后删除包名称之间的逗号
发布于 2017-11-18 18:53:31
你说你必须删除的‘包’实际上是脚本,大多数(全部?)其中由名为notebook的pip包提供。通常,notebook包作为名为jupyter的元包的依赖项安装(如另一个答案中所建议的),但也可以在没有它的情况下安装。我建议你尝试一下(遵循你已经列出的sudo等)
sudo -H pip3 uninstall notebookhttps://stackoverflow.com/questions/47001684
复制相似问题