Python Anaconda-如何安全卸载 [英] Python Anaconda - How to Safely Uninstall

查看:205
本文介绍了Python Anaconda-如何安全卸载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在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 your PATH environment variable, and remove the hidden .condarc file and .conda and .continuum directories which may have been created in the home directory with rm -rf ~/.condarc ~/.conda ~/.continuum.

更多说明:

  • Python3安装可能使用~/anaconda3目录而不是~/anaconda.
  • 您可能还有一个~/.anaconda隐藏目录,可以将其删除.
  • 根据安装方式的不同,PATH可能会在一个runco​​m文件中而不是在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 the PATH modified in ~/.bash_profile.

这篇关于Python Anaconda-如何安全卸载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆