Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/276.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 无法卸载未安装的requirement jupyter_Python_Pip_Jupyter - Fatal编程技术网

Python 无法卸载未安装的requirement jupyter

Python 无法卸载未安装的requirement jupyter,python,pip,jupyter,Python,Pip,Jupyter,我已经安装了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 /us

我已经安装了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卸载jupyter客户端jupyter控制台jupyter core
我已卸载这3个软件包,但仍有(2xTab):

皮普说他们不在那里:

$ 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:错误的解释器:/usr/local/opt/python/bin/python3.6:没有这样的文件或目录

你不需要使用下面的命令卸载jupyter就可以解决这个问题

Python3:pip3安装--升级--强制重新安装--无缓存目录jupyter

Python2:pip安装--升级--强制重新安装--无缓存目录jupyter

参考:


上述步骤在Mac中对我很有效

尝试
pip3卸载jupyter客户端jupyter控制台jupyter core
没有安装一个名为“jupyter”的软件包。正如您的grep所示,您需要卸载
jupyter-core
@jdoe,它只删除了3个包,但没有删除所有仍然对
pip
不可见的jupyter相关包。我已经把新的放在编辑中了,请看。如何删除它们?@iGuanaut你说得对,但仍然有一些与jupyter相关的软件包无法删除。你能看看我对原帖的编辑吗。
sudo -H pip uninstall notebook