我既有Anaconda&已安装Miniconda-我可以删除一个吗? [英] I have both Anaconda & Miniconda installed - can I delete one?

查看:121
本文介绍了我既有Anaconda&已安装Miniconda-我可以删除一个吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的计算机内存几乎快用完了,在通过大包装清理空间时,我意识到我拥有miniconda3(占用5.71GB)和anaconda3(占用4.13GB).我可能是几年前这样做的,当时却不经意地遵循了某个类的安装说明.在这一点上,如果我现在要选择要安装的版本,我会理解每个发行版本的优点/缺点,但是我不确定删除其中一个版本会发生什么.任何指针/建议,将不胜感激.谢谢!

My computer memory is nearly out of space, and in going through large packages to clean space I realized that I have miniconda3, taking up 5.71GB, and anaconda3, taking up 4.13GB. I probably did this a few years ago while mindlessly following install instructions for a class. At this point, I understand the merits/drawbacks of each distribution if I were to choose now which one I'd like to install, but I am not sure what exactly would happen if I delete one of these. Any pointers/advice would be appreciated. Thanks!

推荐答案

卸载anaconda3

macOS:

Uninstall anaconda3

macOS:

打开macOS Terminal.app或iTerm2终端应用程序,然后删除整个Anaconda目录,该目录的名称为 anaconda2 anaconda3 〜/opt .输入 rm -rf〜/anaconda3 删除目录.

Open the macOS Terminal.app or iTerm2 terminal application, and then remove your entire Anaconda directory, which has a name such as anaconda2, anaconda3, or ~/opt. Enter rm -rf ~/anaconda3 to remove the directory.

从Anaconda Prompt(Linux或macOS上的终端)安装Anaconda-Clean软件包:

Install the Anaconda-Clean package from Anaconda Prompt (terminal on Linux or macOS):

conda安装anaconda-clean 在同一窗口中,运行以下命令之一:

conda install anaconda-clean In the same window, run one of these commands:

先删除提示,然后删除所有与Anaconda相关的文件和目录,然后再删除每个文件和目录:

Remove all Anaconda-related files and directories with a confirmation prompt before deleting each one:

anaconda-clean 或者,删除所有与Anaconda相关的文件和目录,而不会提示您删除每个文件和目录:

anaconda-clean Or, remove all Anaconda-related files and directories without being prompted to delete each one:

anaconda-clean-是Anaconda-Clean创建所有可能在主目录中名为.anaconda_backup的文件夹中删除的文件和目录的备份.还要注意,Anaconda-Clean不会改变您在AnacondaProjects目录中的数据文件.完成之后,继续执行选项1.

anaconda-clean --yes Anaconda-Clean creates a backup of all files and directories that might be removed in a folder named .anaconda_backup in your home directory. Also note that Anaconda-Clean leaves your data files in the AnacondaProjects directory untouched. After that has been done, go ahead and do option 1.

来自帖子> rth :要卸载miniconda,只需删除miniconda文件夹,

From this post by rth: In order to uninstall miniconda, simply remove the miniconda folder,

rm -r ~/miniconda/

注意:您可以使用相同的说明来使anaconda卸载miniconda

从.bash_profile中删除Anaconda/miniconda路径

如果您使用Linux或macOS,则还可能希望检查主目录中的.bash_profile文件中是否存在以下行:

Removing Anaconda/miniconda path from .bash_profile

If you use Linux or macOS, you may also wish to check the .bash_profile file in your home directory for a line such as:

export PATH="/Users/jsmith/anaconda3/bin:$PATH"
# replace that with your path to anaconda

这篇关于我既有Anaconda&已安装Miniconda-我可以删除一个吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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