首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法卸载要求jupyter,未安装

无法卸载要求jupyter,未安装
EN

Stack Overflow用户
提问于 2017-10-29 14:09:55
回答 2查看 6.1K关注 0票数 2

我已经安装了jupyter,但想卸载它。但这是不可能的:

代码语言:javascript
复制
$ 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):

代码语言:javascript
复制
$ jupyter-
jupyter-bundlerextension  jupyter-nbconvert         jupyter-nbextension       jupyter-notebook          jupyter-qtconsole         jupyter-serverextension   jupyter-trust 

皮普说他们不在那里

代码语言:javascript
复制
$ pip3 freeze | grep jupyter
$ pip freeze | grep jupyter

当我试图移除他们中的任何一个时,我也得到了同样的例子:

代码语言:javascript
复制
sudo -H pip uninstall jupyter-notebook
Cannot uninstall requirement jupyter-notebook, not installed

那么,如何完全删除这些包呢?

EN

回答 2

Stack Overflow用户

发布于 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中对我起作用。

票数 4
EN

Stack Overflow用户

发布于 2017-11-18 10:56:33

您提到的脚本由名为notebook的pip包提供,它可以作为jupyter元打包的一部分安装,但也可以单独安装。试一试

代码语言:javascript
复制
sudo -H pip uninstall notebook
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47001138

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档