我已经安装了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?
EDIT
After: 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
pip 说他们不在那里:
$ pip3 freeze | grep jupyter
$ pip freeze | grep jupyter
当尝试删除其中任何一个时,我得到了相同的结果,例如:
sudo -H pip uninstall jupyter-notebook
Cannot uninstall requirement jupyter-notebook, not installed
那么如何彻底删除这些包呢?
如果您尝试卸载 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 https://github.com/jupyter/jupyter_core/issues/127
以上步骤在 Mac 上对我有用
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)