[PYTHON] What to do when a Remove Error occurs when updating conda

Introduction

When you run `` `conda update --all``` from Anaconda Prompt on windows10

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


 I will show you how to deal with it when the error is displayed.

 The reason for this is that the update of Anaconda Navigator was not completed. As a result of trying the above command after seeing [How to update various things including Anaconda Navigator](http://coffeebreakscript.hatenablog.com/entry/2018/06/27/133028), this RemoveError came out. It was.

 I will write in the order of the solved method and the unsolved method.

# The solution
```conda update --force conda```To run

 After that, when I opened Anaconda Navigator and updated Anaconda Navigator from the pop-up, the appde that did not seem to end earlier was completed immediately.
 Reference: https://stackoverflow.com/questions/54392995/removeerror-requests-is-a-dependency-of-conda-and-cannot-be-removed-from-cond

# How it didn't work
 * Execute `` `conda update conda```
 * Run `` `conda install -c anaconda setuptools` ``
 * Run ``` conda update anaconda-navigator```

 All of them got a RemoveError and couldn't update.

# Summary
 After all, adding the `` `--force``` option worked, but I'm not sure if it was the right way to go. Also, it's a solution without knowing what setuptools is.
 When I executed it with the force option, the content that the force option disappeared soon appeared on the prompt screen, so if that happens, may I need to take another action?







Recommended Posts

What to do when a Remove Error occurs when updating conda
What to do if a 0xC0000005 error occurs in tf.train.start_queue_runners ()
What to do when an error occurs with import _ssl
What to do when PermissionError of tempfile.mkstemp occurs
What to do if an error occurs when importing numpy with VScode
[OSX] [pyenv] What to do when an SSL error occurs in pip
What to do when gdal_merge creates a huge file
What to do if a UnicodeDecodeError occurs in pip
[python] What to do when an error occurs in send_keys of headless chrome
What to do when SSL error occurs in pip in Windows10, miniconda, VScode environment
What to do if a Unicode Encode Error occurs in Sublime Text Python
What to do if a version error occurs in the selenium Chrome driver
[Python] Type Error:'WebElement' object is not iterable What to do when an error occurs
What to do when Ubuntu crashes
What to do if you get a memory error when converting from PySparkDataFrame to PandasDataFrame
What to do if an error occurs when loading a python project created with poetry into VS Code
What to do if a communication error occurs due to proxy when installing with package management of pip, npm, gem
What to do when a Missing artifact occurs in a jar that is not defined in pom.xml
[AWS] What to do when the ping command causes a "timeout"
What to do when a video cannot be read by cv2.VideoCapture
What to do when UnicodeDecodeError occurs during read_csv in pandas (pd.read_table ())
What to do when ModuleNotFoundError: No module named'XXX' occurs in Python
What to do if you get a must override `get_config` error when trying to model.save in Keras
[Memorandum] What to do when a warning appears after executing pip list
What to do when pyinstaller: error: argument --add-binary: invalid add_data_or_binary value: appears
[Docker] What to do when error Couldn't find the binary git appears
[Python] What to do when an error related to SSL authentication is returned
What to do if you get an error when trying to load mnist
What to do if fprintd requires a password when registering your fingerprint
What to do if you get an error when installing Dlib (Ubuntu)
What to do when psycopg2 throws an error when pipenv lock under Pipenv environment
What to do when a warning message is displayed in pip list
I built an environment from centos installation to php source expansion on linux, but what to do when a browser error occurs
[Django] What to do if an Integrity Error occurs when registering data from the management site to the database
What to do if you get a Permission denied (public key) error when trying to pull on Github
What I did when updating from Python 2.6 to 2.7
What to do if a symbolic link error occurs in import cv while trying to install OpenCV in Python
[Python] What to do if an error occurs in pip (pyinstaller, pyautogui, etc.)
What to do if you get a "No versions found" error in pipenv
What to do if CERTIFICATE_VERIFY_FAILED occurs when nltk.download () is done on macOS pyhon
What to do when a warning appears around Python integration in Neovim's CheckHealth
What to do if you get an error when installing python with pyenv
[Python] What to check when you get a Unicode Decode Error in Django
What to do if an SSL connection error (ssl.SSLError: [SSL: DH_KEY_TOO_SMALL]) occurs on Ubuntu 20.04
What to do when you want to receive files from a Windows client remotely
What to do if you get an error when trying to send a message in tasks.loop () immediately after startup
What to do if you are told "Import Error: cannot import name'HTTPSHandler'" when building a virtual environment using virtualenv
[Go 1.13] What to do when unexpected directory layout: appears
[openpyxl] What to do when IllegalCharacterError appears in pandas.DataFrame.to_excel
What to do when raise ValueError, "unsupported hash type"
What to do when "cannot import name xxx" [Python]
A memorandum when an error occurs with pip install
What to do when you can't bind CaboCha to Python
What to do if you get an error when importing matplotlib in Python (Mac)
What to do if you get an Import Error when importing matplotlib with Jupyter
What to do when "Type Error: must be _socket.socket, not socket" appears on GAE
What to do if you get the error ʻERR_FEATURE_UNAVAILABLE_ON_PLATFORM` when using ts-node-dev on Linux
[AWS] What to do when you want to pip with Lambda
What to do when Japanese is not displayed on matplotlib
What to do when you get an error saying "Name resolution temporarily failed" on linux
What to do if pip gives a DistributionError in Homebrew