When conda met request to create a virtual environment or installing the library is a dependency of conda and can not be removed from conda operating env

Question: conda create a virtual environment or often meet request to install the library is a dependency of conda and can not be removed from conda operating env

Preparing transaction: done
Verifying transaction: failed

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:

Before each create a virtual environment or installing the library, perform conda update condacommand. This problem does not occur after the update, be sure to execute this command at the beginning.

Published 21 original articles · won praise 1 · views 1119

Guess you like

Origin blog.csdn.net/Elenstone/article/details/105122754