RemoveError: ‘setuptools‘ is a dependency of conda and cannot be removed from conda‘s operating envi

created at 08-07-2021 views: 155

description

Today, I used conda to create a virtual environment on windows, and then conda install nb_conda reported an error:

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

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

solution

There are basically two online methods, 

  1. one is to upgrade conda
  2. the other is to uninstall the requests and setuptools that were originally installed with pip, and then install it again with conda.

method1

conda update conda

method2

pip uninstall requests
pip uninstall setuptools
conda install setuptools
conda install requests

Notice: I didn't use Method2 so I can't guarantee it.

created at:08-07-2021
edited at: 08-07-2021: