无法卸载需求jupyter,未安装 [英] Cannot uninstall requirement jupyter, not installed
问题描述
我已经安装了jupyter
,但要卸载它.但是,这是不可能的:
I have installed jupyter
but want to uninstall it. It however is not possible:
$ 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?
What can I do to remove this jupyter?
编辑
之后:sudo pip3 uninstall jupyter-client jupyter-console jupyter-core
我已经卸载了这3个软件包,但是仍然剩下(2xTab):
EDIT
After: sudo pip3 uninstall jupyter-client jupyter-console jupyter-core
I have uninstalled this 3 packages however still remaining are (2xTab):
$ jupyter-
jupyter-bundlerextension jupyter-nbconvert jupyter-nbextension jupyter-notebook jupyter-qtconsole jupyter-serverextension jupyter-trust
pip说他们不在那里:
And pip says they are not there:
$ pip3 freeze | grep jupyter
$ pip freeze | grep jupyter
,当尝试删除其中任何一个时,我得到了相同的信息,例如:
and when trying to remove any of them I got same eg:
sudo -H pip uninstall jupyter-notebook
Cannot uninstall requirement jupyter-notebook, not installed
那么,如何也完全删除那些软件包呢?
So how to remove completelly those packages too?
推荐答案
如果您试图卸载jupyter,因为在运行jupyter笔记本时jupyter抛出以下错误
zsh: /usr/local/bin/jupyter: bad interpreter: /usr/local/opt/python/bin/python3.6: no such file or directory
,
in case you were trying to uninstall jupyter because jupyter throwing below error while running jupyter notebook
zsh: /usr/local/bin/jupyter: bad interpreter: /usr/local/opt/python/bin/python3.6: no such file or directory
,
您可以使用以下命令解决此问题,而无需卸载jupyter
u can fix that without uninstalling jupyter using below command
Python3:pip3 install --upgrade --force-reinstall --no-cache-dir jupyter
Python3 : pip3 install --upgrade --force-reinstall --no-cache-dir jupyter
Python2:pip 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上,上述步骤对我有用
Above steps worked for me in Mac
这篇关于无法卸载需求jupyter,未安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!