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屋!