我已经安装了Anaconda,并且它自带了Jupyter版本,所以我想卸载使用pip3安装的Jupyter。我搜索了相关指令并尝试使用pip3 uninstall Jupyter
,但似乎不正确,因为我得到了以下信息,它说是Jupyter 1.0.0:
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。
这似乎是一个很简单的问题,但我搜索了很多还是没有找到清晰的答案。谢谢!
pip freeze | grep jupyter
和pip3 freeze | grep jupyter
很有帮助,可以找到要卸载的软件包名称。 - Harry