我一直在尝试卸载 jupyter
我尝试了以下命令
pip uninstall jupyter
pip3 uninstall jupyter
和
rm -rf /Users/$user/Library/Jupyter/*
即使在我在终端中键入 jupyter 时运行了所有这些命令后,我也会收到以下消息
usage: jupyter [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir]
[--paths] [--json]
[subcommand]
jupyter: error: one of the arguments --version subcommand --config-dir --data-dir --runtime-dir --paths is required
到底出了什么问题,为什么我仍然可以使用该命令?
原文由 jigar surana 发布,翻译遵循 CC BY-SA 4.0 许可协议
如果您不想使用
pip-autoremove
(因为它删除了其他包之间共享的依赖项)和pip3 uninstall jupyter
只是删除了一些包,然后执行以下操作:复制粘贴:
sudo
可能需要根据您的需要。笔记:
上面的命令只会卸载
jupyter
特定的包。我没有添加其他要卸载的包,因为它们可能在其他包之间共享(例如:Jinja2
被Flask
使用,ipython
是一组单独的–他们自己,tornado
可能再次被其他人使用)。无论如何,下面提到了所有依赖项(截至 2020 年 11 月 21 日
jupyter==4.4.0
)_如果您确定要删除所有依赖项,则可以使用 Stan_MD 的答案。_
执行编辑:
每个的解释:
jupyter
dist-packages:pip3 uninstall jupyter
jupyter_core
dist-packages (It also uninstalls following binaries:jupyter
,jupyter-migrate
,jupyter-troubleshoot
):pip3 uninstall jupyter_core
jupyter-client
:pip3 uninstall jupyter-client
jupyter-console
:pip3 uninstall jupyter-console
jupyter-notebook
(It also uninstalls following binaries:jupyter-bundlerextension
,jupyter-nbextension
,jupyter-notebook
,jupyter-serverextension
):pip3 uninstall notebook
jupyter-qtconsole
:pip3 uninstall qtconsole
jupyter-nbconvert
:pip3 uninstall nbconvert
jupyter-trust
:pip3 uninstall nbformat