linnux怎么删除anaconda3

Hello, I previously installed Anaconda3 on my computer.然后我想重新安装它,所以我想到了卸载原来的。
Speaking of which, the uninstallation process is actually a bit difficult.
The first time I tried the uninstall script provided by Anaconda, it was quite simple. First, find the Anaconda installation folder, which by default is located in the anaconda3 folder in the user's home directory. I remember what I did at the time: type rm -rf ~/anaconda3 into the terminal, then delete that folder. But this stuff is pretty shady so you have to be careful not to delete other things by mistake.
Then I had to clean up the environment variable configuration.这一步有点复杂。
您必须打开 shell 配置文件,例如 .bashrc 或 .bash_profile,然后找到与 Anaconda 相关的行并删除 import PATH="/home/yourusername/anaconda3 /bin:$PATH" 等行。
At that time I used the vi editor to make changes, which was quite difficult to use. I have to be careful not to change other useful things.
After making the changes, I have to make the changes take effect by running source ~/.bashrc in the terminal. This step is very important, otherwise the new configuration will not take effect immediately.
最后,我在我的主目录中发现了一个名为 .conda 或 .anaconda 的隐藏文件夹,因此我使用命令 rm -rf ~/.conda 和 rm -rf ~/.anaconda 将其删除。
This step is actually optional, but I think it would be cleaner to remove it.
另外,如果你使用的Anaconda版本是4 .2 以上,可以直接用conda命令卸载,非常方便。
I remember I used method one and it went very well.
After uninstalling, I have to check if there are any files or configurations left over.无论如何,我尝试了 conda,但没有输出。
It seems the conda command was removed successfully.
It's easy to say, but you still have to be careful not to mess up the system.哈哈,希望我的经验可以帮到你!

Linux下Anaconda环境安装/创建/激活/退出/删除/管理

率直に言って、Anaconda を使用して環境を管理することは、ビルディング ブロックのようなものです。
シンプルだけどバカにしないでね。

First, let's talk about the most important thing.環境を作成するときにデフォルトのパスをやみくもに変更しないでください。
昨年、接頭辞を指定しなかったため、そのプロジェクトを実行しました。
安装完后发现根目录下的文件全都是乱七八糟的。
きれいにするのに2 日かかりました。
还有就是版本号相差很大。
比如3 .6 和3 .6 .9 就很不一样。
去年、私たちのプロジェクトの 1 つで古いバージョンが使用され、特定のライブラariがクラッシュしました。
用最新的就没有问题版本。
还有另一个重要的细节。
You can install more packages by adding -c conda-forge when creating it.しかし、私たちは昨年それを試みました。
Forgeソースの一部のパッケージは清华社のソースと竞争合し、インソトール后にさまざまなエラーが报告されました。
これには注意が必要です。

最初は、conda激活を使用して、环境のakutィブ化を2 つのsuテップで実行できると考えていました。
その后、Linuxで环境変数を有效にするには、源激活のみを使用できることがわかりました。
否则关闭时就浪费了 terminal.これはかなりの罠です。

Please do not wave when leaving. Specifying -f after conda deactivate will force it to exit. Someone forgot to add it last time.结果环境没有正常关闭,报错。
正直、かなり面倒です。
删除时一定要加上--allそうしないと、データがまだしている场合、次回同じ名前で环境を作成するときにデータが直接上书きされます。
去年,我们差点被我们的员工解雇。
老板,因为关键数据集丢失了。

ちょっと待って、もう一つ。
When checking the environment list using conda env list, don't just look at the name.您还应该检查版本号和前回、古环境いを使って新しいコードを実行しようとしたのですが、その结果、バージョンが一致しないとエラーが報告され、長い時間が無駄になってしまいました。

在下次使用 Anaconda 之前,我们建议您在虚拟机上进行练习。
毕竟,即使失败了,也没有什么遗憾。