我已经安装了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我该怎么做才能移除这个酒鬼?
编辑后: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那么,如何完全删除这些包呢?
发布于 2019-03-17 05:30:17
如果您试图卸载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安装-升级-强制-重新安装-无缓存-dir jupyter Python2 : pip安装-升级-强制-重新安装-无缓存-dir jupyter
参考资料:core/issues/127
以上步骤在Mac中对我起作用。
发布于 2017-11-18 10:56:33
您提到的脚本由名为notebook的pip包提供,它可以作为jupyter元打包的一部分安装,但也可以单独安装。试一试
sudo -H pip uninstall notebookhttps://stackoverflow.com/questions/47001138
复制相似问题