我已经安装了jupyter
但想卸载它。然而,这是不可能的:
$ pip freeze | grep jupyter
$ pip3 freeze | grep jupyter
jupyter-client==5.1.0
jupyter-console==5.2.0
jupyter-core==4.3.0
$ pip3 uninstall jupyter
Cannot uninstall requirement jupyter, not installed
$ which jupyter
/usr/local/bin/jupyter
我该怎么做才能删除这个jupyter?
编辑后:sudo pip3 uninstall jupyter-client jupyter-console jupyter-core
我已经卸载了这3个软件包,但仍然是(2xTab):
$ jupyter-
jupyter-bundlerextension jupyter-nbconvert jupyter-nbextension jupyter-notebook jupyter-qtconsole jupyter-serverextension jupyter-trust
而皮普说他们不在那里:
$ pip3 freeze | grep jupyter
$ pip freeze | grep jupyter
当试图删除其中任何一个我得到相同,例如:
sudo -H pip uninstall jupyter-notebook
Cannot uninstall requirement jupyter-notebook, not installed
那么如何完全删除这些包呢?
您提到的脚本由名为notebook
的pip包提供,它可以作为jupyter元数据包的一部分安装,但也可以单独安装。尝试
sudo -H pip uninstall notebook
万一你试图卸载jupyter,因为jupyter在运行jupyter笔记本时抛出以下错误
zsh: /usr/local/bin/jupyter: bad interpreter: /usr/local/opt/python/bin/python3.6: no such file or directory
,
你可以使用下面的命令解决这个问题而无需卸载jupyter
Python3:pip3 install --upgrade --force-reinstall --no-cache-dir jupyter
Python2:pip install --upgrade --force-reinstall --no-cache-dir jupyter
参考:https://github.com/jupyter/jupyter_core/issues/127
以上步骤适用于Mac