Python Anaconda - 如何安全卸载 [英] Python Anaconda - How to Safely Uninstall
问题描述
我在 Mac(OS Mavericks)上安装了 Python Anaconda.我想在我的 Mac 上恢复到默认版本的 Python.做到这一点的最佳方法是什么?我应该删除 ~/anaconda
目录吗?还需要其他什么改动吗?
I installed Python Anaconda on Mac (OS Mavericks). I wanted to revert to the default version of Python on my Mac. What's the best way to do this? Should I delete the ~/anaconda
directory? Any other changes required?
目前当我运行 which python
我得到这个路径:
Currently when I run which python
I get this path:
/Users/username/anaconda/bin/python
推荐答案
来自 文档:
要卸载 Anaconda,请打开终端窗口并删除整个anaconda 安装目录:rm -rf ~/anaconda
.你也可以编辑~/.bash_profile
并从 PATH
中删除 anaconda 目录环境变量,并删除隐藏的 .condarc
文件和.conda
和 .continuum
目录可能已经在rm -rf ~/.condarc ~/.conda ~/.continuum
的主目录.
To uninstall Anaconda open a terminal window and remove the entire anaconda install directory:
rm -rf ~/anaconda
. You may also edit~/.bash_profile
and remove the anaconda directory from yourPATH
environment variable, and remove the hidden.condarc
file and.conda
and.continuum
directories which may have been created in the home directory withrm -rf ~/.condarc ~/.conda ~/.continuum
.
进一步说明:
- Python3 安装可能使用
~/anaconda3
目录而不是~/anaconda
. - 您可能还有一个
~/.anaconda
隐藏目录可以删除. - 根据您的安装方式,
PATH
可能在您的 runcom 文件之一中被修改,而不是在您的 shell 配置文件中.因此,例如,如果您正在使用 bash,请务必检查您的~/.bashrc
如果在~/.bash_profile 中没有找到修改的
PATH
.
- Python3 installs may use a
~/anaconda3
dir instead of~/anaconda
. - You might also have a
~/.anaconda
hidden directory that may be removed. - Depending on how you installed, it is possible that the
PATH
is modified in one of your runcom files, and not in your shell profile. So, for example if you are using bash, be sure to check your~/.bashrc
if you don't find thePATH
modified in~/.bash_profile
.
这篇关于Python Anaconda - 如何安全卸载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!