gpt4 book ai didi

python - 如何卸载jupyter

转载 作者:IT老高 更新时间:2023-10-28 21:32:30 37 4
gpt4 key购买 nike

我一直在尝试卸载 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-autoremove (因为它会删除其他包之间共享的依赖项)并且 pip3 uninstall jupyter 只是删除了一些包,然后执行以下:

复制粘贴:

sudo 可能需要根据您的需要。

python3 -m pip uninstall -y jupyter jupyter_core jupyter-client jupyter-console jupyterlab_pygments notebook qtconsole nbconvert nbformat jupyterlab-widgets nbclient

注意:

上面的命令只会卸载 jupyter 特定的包。我没有添加要卸载的其他包,因为它们可能在其他包之间共享(例如:Flask 使用 Jinja2ipython 是单独的一组包本身,tornado 可能再次被其他人使用)。

无论如何,下面提到了所有依赖项(截至 2020 年 11 月 21 日。jupyter==4.4.0)

如果您确定要删除所有依赖项,则可以使用 Stan_MD的答案。

argon2-cffi
argon2-cffi-bindings
async-generator
attrs
backcall
bleach
cffi
dataclasses
decorator
defusedxml
entrypoints
importlib-metadata
ipykernel
ipython
ipython-genutils
ipywidgets
jedi
Jinja2
jsonschema
jupyter
jupyter-client
jupyter-console
jupyter-core
jupyterlab-pygments
jupyterlab-widgets
MarkupSafe
mistune
nbclient
nbconvert
nbformat
nest-asyncio
notebook
packaging
pandocfilters
parso
pexpect
pickleshare
prometheus-client
prompt-toolkit
ptyprocess
pycparser
Pygments
pyparsing
pyrsistent
python-dateutil
pyzmq
qtconsole
QtPy
Send2Trash
six
terminado
testpath
tornado
traitlets
typing-extensions
wcwidth
webencodings
widgetsnbextension
zipp

执行编辑:

pip3 uninstall jupyter
pip3 uninstall jupyter_core
pip3 uninstall jupyter-client
pip3 uninstall jupyter-console
pip3 uninstall jupyterlab_pygments
pip3 uninstall notebook
pip3 uninstall qtconsole
pip3 uninstall nbconvert
pip3 uninstall nbformat

各解释:

  1. 卸载 jupyter dist-packages:

    pip3 卸载 jupyter

  2. 卸载 jupyter_core dist-packages(它还卸载以下二进制文件:jupyterjupyter-migratejupyter-故障排除):

    pip3 卸载 jupyter_core

  3. 卸载jupyter-client:

    pip3 卸载 jupyter-client

  4. 卸载jupyter-console:

    pip3 卸载 jupyter-console

  5. 卸载 jupyter-notebook(它还会卸载以下二进制文件:jupyter-bundlerextensionjupyter-nbextensionjupyter -notebook, jupyter-serverextension):

    pip3 卸载笔记本

  6. 卸载jupyter-qtconsole:

    pip3 卸载qtconsole

  7. 卸载jupyter-nbconvert:

    pip3 卸载 nbconvert

  8. 卸载jupyter-trust:

    pip3 卸载 nbformat

关于python - 如何卸载jupyter,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33052232/

37 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com