I recently upgraded macOS from High Sierra to Big Sur. My Anaconda installation, which was previously installed in /anaconda3 is now broken.
First /anaconda3 is missing; I found it in /System/Volumes/Data/anaconda3. Second, the conda and activate commands do not work because many files in the anaconda3 folder still expect the path to be /anaconda3. For example,
$ /System/Volumes/Data/anaconda3/bin/conda env list
-bash: /System/Volumes/Data/anaconda3/bin/conda: /anaconda3/bin/python: bad interpreter: No such file or directory
What's the solution to get this working on Big Sur? Should I nuke the anaconda3 folder and re-install? If so, can I export the list of environments and packages to re-create them post-install?
Note that a similar issue affecting Catalina users is not identical to this Big Sur issue. If you didn't previously keep anaconda3 under /, you can easily move the anaconda3 directory back to its previous location. If anaconda3 was under /, however, this is not possible because macOS Big Sur doesn't allow the folder to be put back under / even when using sudo.