我一直在试着卸载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
到底出了什么问题,为什么我还能使用这个命令?
当您
$ pip install jupyter
安装几个依赖项时。完全卸载它的最佳方法是运行:$ pip install pip-autoremove
$ pip-autoremove jupyter -y
请参考相关的question。
pip-autoremove
删除包及其未使用的依赖项。这是docs。尝试
pip uninstall jupyter_core
。详情如下:当我的jupyter笔记本只显示Python 2笔记本时,我遇到了类似的问题。(没有Python3笔记本)
我试图通过
pip unistall jupyter
、pi3 uninstall jupyter
和建议的pip-autoremove jupyter -y
卸载jupyter。什么都没用。我运行
which jupyter
,得到/home/ankit/.local/bin/jupyter
文件
/home/ankit/.local/bin/jupyter
只是一个简单的python代码:试图通过
pip uninstall jupyter_core
卸载模块jupyter_core
,它成功了。用
pip3 install jupyter
重新安装jupyter,一切恢复正常。如果不想使用
pip-autoremove
(因为它删除了其他包之间共享的依赖项),并且pip3 uninstall jupyter
只删除了一些包,请执行以下操作:复制粘贴:
根据您的需要,可能需要
sudo
。注:
以上命令将只卸载特定于
jupyter
的包。我没有添加要卸载的其他包,因为它们可能在其他包之间共享(例如,Jinja2
由Flask
使用,ipython
是一组独立的包本身,tornado
可能由其他包使用)。在任何情况下,所有依赖项如下所述(截至2019年11月17日)。
jupyter==4.4.0
)如果确定要删除所有依赖项,则可以使用Stan_MD的答案。
行政编辑:
每种解释:
卸载
jupyter
dist包:pip3 uninstall jupyter
卸载
jupyter_core
dist packages(它还卸载以下二进制文件:jupyter
,jupyter-migrate
,jupyter-troubleshoot
):pip3 uninstall jupyter_core
卸载
jupyter-client
:pip3 uninstall jupyter-client
卸载
jupyter-console
:pip3 uninstall jupyter-console
卸载
jupyter-notebook
(它还卸载以下二进制文件: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
相关问题 更多 >
编程相关推荐