rm -rf ~/anaconda3
rm -rf ~/.anaconda
rm -rf ~/.condarc
rm -rf ~/.conda
rm -rf ~/.continuum
rm -rf ~/.ipython
rm -rf ~/.local/share/jupyter
rm -rf ~/.local/share/Spyder
rm -rf ~/.config/spyder-py3
sudo gedit ~/.bashrc
删除 包含 # >>> conda initialize >>>与# <<< conda initialize <<<以及两者之间的所有内容
,例如我的是删除
# >>> conda initialize >>> # !! Contents within this block are managed by 'conda init' !! __conda_setup="$('/home/alice/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)" if [ $? -eq 0 ]; then eval "$__conda_setup" else if [ -f "/home/alice/anaconda3/etc/profile.d/conda.sh" ]; then . "/home/alice/anaconda3/etc/profile.d/conda.sh" else export PATH="/home/alice/anaconda3/bin:$PATH" fi fi unset __conda_setup # <<< conda initialize <<<
如果末尾有自己添加的anaconda路径内容,也要删除
将末尾的此行删除
# added by Anaconda3 installer export PATH="/home/alice/anaconda3/bin:$PATH"
此处的alice应为你的实际用户名
命令如下:
source ~/.bashrc
至此,anaconda已经完全被卸载 此后,可进行Anaconda的重新安装了