如何从macOS完全卸载Anaconda [英] How to uninstall Anaconda completely from macOS
问题描述
如何从MacOS Sierra完全卸载Anaconda并恢复为原始Python?我尝试使用conda-clean -yes
,但这不起作用.我还删除了~/.bash_profile
中的内容,但是它仍然使用Anaconda python,并且我仍然可以运行conda
命令.
How can I completely uninstall Anaconda from MacOS Sierra and revert back to the original Python? I have tried using conda-clean -yes
but that doesn't work. I also remove the stuff in ~/.bash_profile
but it still uses the Anaconda python and I can still run the conda
command.
推荐答案
要删除配置:
conda install anaconda-clean
anaconda-clean --yes
删除配置后,您可以删除anaconda安装文件夹,该文件夹通常位于您的主目录下:
Once the configs are removed you can delete the anaconda install folder, which is usually under your home dir:
rm -rf ~/anaconda3
此外,anaconda-clean --yes
命令在您的主目录中以~/.anaconda_backup/<timestamp>
格式创建备份.确保也删除其中一个.
Also, the anaconda-clean --yes
command creates a backup in your home directory of the format ~/.anaconda_backup/<timestamp>
. Make sure to delete that one also.
编辑(v5.2.0):现在,如果要清除所有内容,还必须删除添加到.bash_profile
中的最后两行.它们看起来像:
EDIT (v5.2.0): Now if you want to clean all, you will also have to delete the two last lines added to your .bash_profile
. They look like:
# added by Anaconda3 5.2.0 installer
export PATH="/Users/ody/anaconda3/bin:$PATH"
这篇关于如何从macOS完全卸载Anaconda的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!