I've some question about uninstalling Anaconda from macOS Big Sur. I was wondering if someone can please help me figure it our what to do. I followed the instruction on the official website (https://docs.anaconda.com/anaconda/install/uninstall/) plus some other guides, but I'm note an expert and I didn't reach my goal. That's what I did:
1) conda install anaconda-clean
2) anaconda-clean --yes
3) rm -rf ~/.condarc ~/.conda ~/.continuum
4) rm -rf ~/anaconda
5) conda remove -n myenv scipy
*PackagesNotFoundError
6) conda remove scipy
7) conda remove scipy curl
*PackagesNotFoundError
8) rm -rf ~/anaconda3
9) rm -rf ~/.anaconda_backup
10) export PATH=”/Users/MYUSERNAME/anaconda3/bin:$PATH
- At the end I've deleted the application throwing it in the trash and emptying it.
I'm not sure I did the right steps, maybe you can give me some advice. However, I didn't delete everything because I have still a folder in /opt path, /opt/anaconda3. I'm sure another folder was in /user/MYNAME, but I think I've deleted it, because I can't see it anymore, even in the hidden folders.
Then, if I run
conda list
lots of other packages are still available:
# packages in environment at /opt/anaconda3:
#
# Name Version Build Channel
_ipyw_jlab_nb_ext_conf 0.1.0 py37_0
anaconda-clean 1.1.0 py37hecd8cb5_1
anaconda-client 1.7.2 py37_0
[...]
zlib 1.2.11 h1de35cc_3
zstd 1.4.5 h41d2c2f_0
Also, conda still run in my terminal as I see (base) every time I open it, here an example:
(base) MYUSERNAME@MacBook ~ %
I also post the content inside .bash_profil, because maybe It can be related with "my terminal (base) problem":
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/opt/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/opt/anaconda3/etc/profile.d/conda.sh" ]; then
. "/opt/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/opt/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
I just wanted delete all the packages and files related to Anaconda.
Thanks in advance
which anadonda
(ortype anaconda
, or maybe something else for zsh) and it will tell us where the command is. It is strange that you kept anaconda3/bin in your path at step #10. /opt is also used by macPorts... maybe it was installed that way? We could spotlight search for anaconda and then do "Show all files..." to try to find left-overs. There's also a third-party application 'Find Any File' which searches for file names and other attributes. Applications store their files under Documents, Library, and Library/Application Support.~/.zsh_profile
and insert in your question.rm -rf /opt/anaconda3
( for example a single [space] after the first [/] ).