一、准备
sudo apt-get install libgl1-mesa-glx libegl1-mesa libxrandr2 libxrandr2 libxss1 libxcursor1 libxcomposite1 libasound2 libxi6 libxtst6
二、下载
wget https://repo.anaconda.com/archive/Anaconda3-2021.11-Linux-x86_64.sh
三、安装
bash Anaconda3-2021.11-Linux-x86_64.sh
source ~/.bashrc
四、升级
conda update --all
五、卸载
rm -rf ~/anaconda3 ~/.conda
vim ~/.bashrc
__conda_setup="$('/home/kang/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/home/kang/anaconda3/etc/profile.d/conda.sh" ]; then
. "/home/kang/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/home/kang/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup