macos 卸载 ipython mac os x

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7019773/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 08:18:09  来源:igfitidea点击:

uninstall ipython mac os x

macosipython

提问by Andrey Lushnikov

I've just installed a new ipython 0.11 on Mac OS X from sources. Unfortunately it turned out that it lacks back-compatibility with its previous versions, so all the scripts I need do not work. After that i installed a 0.10 version of ipython from macports, hoping it would replace the current one (yep, maybe it wasn't a good idea - things gone even more complicated). But it didn't, and my scripts are still using the 0.11 version of ipython

我刚刚从源代码在 Mac OS X 上安装了一个新的 ipython 0.11。不幸的是,它与以前的版本缺乏向后兼容性,所以我需要的所有脚本都不起作用。在那之后,我从 macports 安装了 0.10 版本的 ipython,希望它能取代当前的版本(是的,也许这不是一个好主意 - 事情变得更加复杂)。但它没有,我的脚本仍在使用 0.11 版本的 ipython

The only thing I need is to make my scripts working. So I need somehow uninstall iPython v.0.11, or make version 0.10 a preferred to use

我唯一需要的是让我的脚本工作。所以我需要以某种方式卸载 iPython v.0.11,或者优先使用 0.10 版

Thanks for any help!

谢谢你的帮助!

回答by Thomas K

pip uninstall ipythonmight be able to remove it.

pip uninstall ipython也许可以删除它。

Otherwise, you'll have to find the files and delete them. At an interactive prompt, do:

否则,您必须找到这些文件并将其删除。在交互式提示下,执行以下操作:

>>> import IPython
>>> IPython

Which should show you where it's imported from.

这应该告诉你它是从哪里导入的。

回答by Aziz Alto

Remember to run pip as a root, or:

请记住以 root 身份运行 pip,或者:

    sudo pip uninstall ipython

Without sudo, it didn't work with me.

没有 sudo,它对我不起作用。