安装/使用/卸载Anaconda

Posted by Yuankun Li on 2023-08-08

安装Anaconda

Anaconda官网下载

如果下载网速过慢,可以使用清华大学镜像:

卸载Anaconda

Step1 彻底卸载Anaconda

  1. 安装 Anaconda-Clean package

打开 Anaconda Prompt 或者命令行, 输入如下命令:

install anaconda-clean```
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

如果安装失败,参考[如何完全卸载Anaconda(如何下载Anaconda-Clean package)](https://developer.aliyun.com/article/936211)

- 删除`.condarc`文件里面的内容(不是删文件)
- [MacOS] `~/.condarc`
- [Window]C盘下`.condarc`
- 重新`conda install anaconda-clean`

2. 输入如下命令卸载

```bash
# If you want to confirm each file and directory you are deleting
anaconda-clean

# If you don't want to be asked about each file and directory
anaconda-clean --yes

Step2 简单移除Anaconda文件

MacOS

Open your terminal application.
Remove your entire Anaconda directory with rm -rf. Depending on your installation, your anaconda2 or anaconda3 directory will be in your root folder or in your opt folder.

1
2
3
4
# The following are a few examples of how you may need to delete your Anaconda folder
rm -rf anaconda3
rm -rf ~/anaconda3
rm -rf ~/opt/anaconda3

Close and reopen your terminal to refresh it. You should no longer see (base) in your terminal prompt.

Step3 Removing Anaconda path from .bash_profile

If you use Linux or macOS, you may also wish to check your .bash_profile or .zprofile file in your home directory for a line such as:
export PATH="/Users/yourname/anaconda3/bin:$PATH"

参考文章



show git comment