anaconda3怎么卸载干净_如何从macOS完全卸载Anaconda

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.

解决方案

To remove the configs:

conda install anaconda-clean

anaconda-clean --yes

Once the configs are removed you can delete the anaconda install folder, which is usually under your home dir:

rm -rf ~/anaconda3

Also, the anaconda-clean --yes command creates a backup in your home directory of the format ~/.anaconda_backup/. Make sure to delete that one also.

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"

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
anaconda是一个用于数据科学和机器学习的Python发行版。如果anaconda没有被完全卸载干净,可能会导致一些问题。 首先,残留的anaconda文件和设置可能会引起环境变量冲突。这意味着当您尝试运行Python或其他与conda相关的命令时,可能会出现错误。 其次,未删除的anaconda包和库可能会导致版本冲突或依赖关系问题。如果您曾经安装过某个特定版本的包,而且没有正确卸载它,那么当您尝试安装其他软件包时,可能会遇到冲突或错误。 此外,anaconda可能会在系统中创建一些系统路径和文件。如果未正确删除这些路径和文件,可能会导致文件冗余和混乱。 为了解决这些问题,您可以采取以下步骤来彻底卸载anaconda: 1. 在您的计算机上搜索并找到anaconda安装目录。 2. 删除该目录及其下的所有文件和文件夹。 3. 打开命令提示符或终端,并输入以下命令来删除残留的环境变量: - 如果您使用的是Windows系统,请运行以下命令: ``` setx PATH "%PATH%;C:\Users\YourUsername\anaconda3" ``` 其中YourUsername是您的用户名。 - 如果您使用的是macOS或Linux系统,请打开`~/.bashrc`或`~/.bash_profile`文件,并删除其中与anaconda相关的行。 4. 检查并删除系统路径中与anaconda相关的任何残余内容。 确保您在卸载anaconda之前备份了重要的数据和文件。此外,如果您在卸载过程中遇到任何困难或问题,请参考官方anaconda文档或寻求相关技术支持。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值