2017-02-15 80 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