Having trouble installing a third party library and I have not seen this error before using Windows 10 with Anaconda installed:
C:\\Users\\XYZ>conda env creat
I had solved the problem RemoveError: 'setuptools' is a dependency of conda and cannot be removed from conda's operating environment.
As the following way:
and then check tools
I haven't met any mistakes yet, but help me correct my way , if something wrong, please
I had the same problem, which was due to a bad installation of a package (OpenEXR in my case).
Try to verify your package with conda list yourPackage
.
If you find which one it is, prefer installing it with pre-built packages here : https://www.lfd.uci.edu/~gohlke/pythonlibs/.
A stack-overflow thread that helped me : Python 2.7, PIP: "Failed building wheel for ..."
EDIT : Two friends had the same error, one solved it by installing/executing with admin rights. The other one succeeded by creating a new virtual environnement for python.
running conda update conda
before solved the problem for me
try conda env create --force -f python3.6-environment-windows.yml I'm not sure exactly where to place it but I use the --force whenever I run into issues like this like conda update --force conda or conda install --force ... use it as last solution since it force conda to perform the command and you might run into some issues later on
Silly point to make here but I've been caught by this before: you may not be in the environment you think you are. Just before killing off any package run a quick check to see:
conda env list
Performing ops on the base environment can cause issues, so you may want to create or change environment.
This worked for me on Linux:
Uninstall the package via pip:
pip uninstall setuptools
Reinstall using the following command:
conda install -c anaconda setuptools
Consider also that system packages (python3-setuptools
, python-setuptools
in Ubuntu) might need to be removed.