Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I have Win 10

When running:

conda update conda 

I encountered this error:

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

Nothing seems to help

I tried to uninstall anaconda and got a successful message but it seems there are some traces of older version that still persist

How can I completely erase all traces of Anaconda installation?

like image 276
Toly Avatar asked Aug 19 '19 02:08

Toly


People also ask

How do I remove conda install?

If you want to revert to a previous revision you can simply run conda install --revision N (where N is the revision number).

What does conda update anaconda do?

See all of the available Anaconda versions. conda update --all will unpin everything. This updates all packages in the current environment to the latest version. In doing so, it drops all the version constraints from the history and tries to make everything as new as it can.


1 Answers

While I still did not find how to cleanly uninstall anaconda, I was able to resolve the error by using the following:

conda update --force conda conda update anaconda 

and again

conda update conda 

As a result, I got a stable environment with no dependency conflicts. Seems like something within latest conda is too restrictive and update must be forced.

like image 126
Toly Avatar answered Sep 20 '22 08:09

Toly