1

I'm trying to uninstall the conda distribution on my Mac using the following standard commands:

conda install anaconda-clean
anaconda-clean -yes
rm -rf ~/anaconda3
rm -rf ~/.anaconda_backup

However, I keep getting the error:

Preparing transaction: done
Verifying transaction: failed

RemoveError: 'requests' is a dependency of conda and cannot be removed from
conda's operating environment.

To address the above error I try:

conda update conda 

Or:

conda update --force conda

Which in turn returns:

CondaVerificationError: The package for matplotlib-inline located at appears to be corrupted. The path specified in the package manifest cannot be found.

How do I solve this error?

Blue Robin
  • 847
  • 2
  • 11
  • 31
ak1504
  • 11
  • 2
  • Does this answer your question? [How to uninstall Anaconda completely from macOS](https://stackoverflow.com/questions/42182706/how-to-uninstall-anaconda-completely-from-macos) – Blue Robin Feb 17 '23 at 03:23
  • I believe the `rm -rf ~/.anaconda_backup` requires a timestamp. – Blue Robin Feb 17 '23 at 03:24
  • No, it doesn't. I'm trying these exact same steps but keep getting stuck with the CondaVerificationError. – ak1504 Feb 17 '23 at 03:30
  • It seems that by the error, it can't find certain packages. Does [this](https://datascience.stackexchange.com/questions/41732/conda-verification-failed) help? – Blue Robin Feb 17 '23 at 04:21
  • I'm confused: you remove anaconda, then you execute the `conda` command. – 9769953 Feb 17 '23 at 08:54
  • At what point do you get the RemoveError error? There are four commands you executed before that; which one is giving that error? Surely not the last two (`rm`) commands? – 9769953 Feb 17 '23 at 08:54
  • FYI: `anaconda-clean` is just a glorified file deletion script - you can simply remove things manually (see https://stackoverflow.com/a/59184796/570918). The only other extra step that Anaconda docs don't mention is cleaning up your `.bashrc`, `.bash_profile`, or `.zshrc` file(s). Edit those to remove any "conda initialization" sections. – merv Feb 17 '23 at 17:41

0 Answers0