如何卸载用pip3安装的Jupyter笔记本

时间:2017-02-15 22:10:23

标签: jupyter-notebook jupyter

我已安装了anaconda,并附带了自己的Jupyter版本,因此我想卸载使用pip3安装的Jupyter。我搜索了指令并尝试使用$ webpack,但这似乎不正确,因为我得到以下内容,它说的是Jupyter 1.0.0:

pip3 uninstall Jupyter

我知道我也可以尝试Uninstalling jupyter-1.0.0: /usr/local/lib/python3.6/site-packages/__pycache__/jupyter.cpython-36.pyc /usr/local/lib/python3.6/site-packages/jupyter-1.0.0.dist-info/DESCRIPTION.rst /usr/local/lib/python3.6/site-packages/jupyter-1.0.0.dist-info/INSTALLER /usr/local/lib/python3.6/site-packages/jupyter-1.0.0.dist-info/METADATA /usr/local/lib/python3.6/site-packages/jupyter-1.0.0.dist-info/RECORD /usr/local/lib/python3.6/site-packages/jupyter-1.0.0.dist-info/WHEEL /usr/local/lib/python3.6/site-packages/jupyter-1.0.0.dist-info/metadata.json /usr/local/lib/python3.6/site-packages/jupyter-1.0.0.dist-info/pbr.json /usr/local/lib/python3.6/site-packages/jupyter-1.0.0.dist-info/top_level.txt /usr/local/lib/python3.6/site-packages/jupyter.py ,但这显示了一堆我不确定其实是Jupyter的文件。

这看起来似乎是一个简单的问题,但我已经搜索过,并且没有找到明确的答案。谢谢!

1 个答案:

答案 0 :(得分:3)

不幸的是,没有简单的解决方案。 “pip install jupyter”命令会安装各种依赖项,因此您可能必须单独卸载它们。

与Jupyter相关的软件包是:

  • 笔记本
  • nbconvert
  • nbformat
  • ipykernel
  • ipywidgets
  • qtconsole
  • traitlets
  • 龙卷风
  • 前面有jupyter的任何东西(jupyter_core,jupyter_client等)
  • ipython_genutils
  • 的Jinja2

其中一些不仅仅是Jupyter(龙卷风,qtconsole,jinja2等),但如果您确定没有使用它们,请随意卸载。