2017-02-15 184 views
3

我已经安装了anaconda,并附带了它自己的Jupyter版本,因此我想卸载使用pip3安装的Jupyter。我搜索指令,并使用pip3 uninstall Jupyter尝试过,但似乎正确不,因为我得到了下面,它说是Jupyter 1.0.0:如何卸载与pip3一起安装的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 

我知道我也可以尝试pip3 uninstall notebook,但显示了一堆我不确定的文件实际上是Jupyter。

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

回答

3

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

与Jupyter相关的软件包:

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

有些是不Jupyter只(龙卷风,qtconsole,Jinja2的等),但如果您确定不使用它们,请随时卸载。

+0

我也发现使用'pip freeze | grep jupyter'和'pip3 freeze | grep jupyter'有助于查找要卸载的软件包名称。 – Harry