[PYTHON] What to do when the warning "The environment is in consistent ..." appears in the Anaconda environment

conda and pip

I've been using Anaconda ever since I started using Python, but at the beginning I wasn't really aware of the difference between ** conda ** and ** pip **.

I now know that both are "dangerous to mix", but until now when installing a new package, I used the one that happened to be featured on the google page.

The result is a jumble of conda and pip. Rather, it was mostly pip install (sweat)

Get a warning when updating conda ...

Meanwhile, I recently had the opportunity to try updating conda, and at that time I noticed a warning message like this.

 Collecting package metadata (repodata.json): done
 Solving environment: | 
 The environment is inconsistent, please check the package plan carefully
 The following packages are causing the inconsistency:

   - defaults/osx-64::smart_open==1.5.7=py36_0
   - https://repo.continuum.io/pkgs/main/osx-64/widgetsnbextension-3.1.0-py36_0.tar.bz2/osx-64::widgetsnbextension==3.1.0=py36_0
   - https://repo.continuum.io/pkgs/main/osx-64/datashape-0.5.4-py36hfb22df8_0.tar.bz2/osx-64::datashape==0.5.4=py36hfb22df8_0
   - defaults/osx-64::s3transfer==0.1.13=py36_0
   - https://repo.continuum.io/pkgs/main/osx-64/dask-0.16.1-py36_0.tar.bz2/osx-64::dask==0.16.1=py36_0
 ...
(Hereafter, a lot of slapstick)

Is it the result of mixing and using conda and pip without worrying about them? I may have been lucky that the toxic gas did not come out and it was not impossible to restart, but when I was told "inconsistent", I was very worried because I was just one user. (Although the update itself seemed to be possible by ignoring the warning.)

How i dealt with

For the time being, I googled, so I just sent the warning message to the search window. Then I found stack overflow's "[The environment is inconsistent, please check the package plan carefully](https://stackoverflow.com/questions/55527354/the-environment-is-inconsistent-please-check-the-" package-plan-carefully) ".

According to this, the warning message will not be displayed by simply doing the following.

conda install anaconda

When I tried it, the warning message certainly disappeared.

Well, I'm not sure if this solved it without any problems, but it works fine so far. If you are suffering from the same symptoms and want to try this method, please make a backup just in case.

Recommended Posts

What to do when the warning "The environment is in consistent ..." appears in the Anaconda environment
What to do when the value type is ambiguous in Python?
What to do when the result downloaded via scrapy is in English
What to do when a warning message is displayed in pip list
[openpyxl] What to do when IllegalCharacterError appears in pandas.DataFrame.to_excel
What to do when a warning appears around Python integration in Neovim's CheckHealth
What to do when "SSL: CERTIFICATE_VERIFY_FAILED _ssl.c: 1056" appears in Python
What to do when "Invalid HTTP_HOST header" appears in Django
What to do when is not in the sudoers file.This incident will be reported.
What to do if Insecure Platform Warning appears when running Python
How to delete "(base)" that appears in the terminal when Anaconda is installed on Mac
[Memorandum] What to do when a warning appears after executing pip list
What to do if the Pipenv environment is corrupted by updating Homebrew
[Docker] What to do when error Couldn't find the binary git appears
[Python] What to do when PEP8 is violated in the process of importing from the directory added to sys.path
What to do when "OS Error: [WinError 126] The specified module cannot be found" appears in import torch
What to do when SSL error occurs in pip in Windows10, miniconda, VScode environment
What to do when "TypeError: data type not understood" appears in python's numpy.zeros
What to do if abort is displayed when inputting camera video in OpenCV
What to do when [Errno 2] No such file or directory appears in Python
What to do when the graph does not appear in jupyter (ipython) notebook
[Go 1.13] What to do when unexpected directory layout: appears
curl: (60) What to do when Issuer certificate is invalid.
[Python] What to do when No module named'pyproj.datadir' appears when Exe is done with PyInstaller
What to do if the progress bar is not displayed in tqdm of python
What to do when Python starts up in Anaconda does not come out unexpectedly
What to do when Japanese is not displayed on matplotlib
What to do when PyCharm font is strange or garbled
OSError: [Errno 40] What to do when Message too long appears
What to do when Ubuntu crashes
What to do when there is no response due to Proxy setting in Python web scraping
What to do if the image is not displayed using matplotlib etc. in the Docker container
What to do when a Missing artifact occurs in a jar that is not defined in pom.xml
What to do if you get an error when running "certbot renew" in CakePHP environment
[AWS] What to do when the ping command causes a "timeout"
How to give and what the constraints option in scipy.optimize.minimize is
What to do when the jupyterlab extension settings are not reflected
What to do if "Unnamed: 0" is added in to_csv-> read_csv in pandas
What to do if the inode is exhausted on EC2 Linux
What to do if you can't use the trash in Lubuntu 18.04.
What to do when you get "I can't see the site !!!!"
[Windows + anaconda] Automatically activate the environment when the command prompt is started
What to do when UnicodeDecodeError occurs during read_csv in pandas (pd.read_table ())
Animate what happens in frequency space when the Nyquist frequency is exceeded
What to do when ModuleNotFoundError: No module named'XXX' occurs in Python
[virtualbox] What to do when [Could not retrieve mirrorlist] appears when yum update is performed on CentOS7
What to do when a part of the background image becomes transparent when the transparent image is combined with Pillow
NameError: global name'dot_parser' is not defined and what to do when it comes up in python
When the target is Ubuntu 16.04 in Ansible
What to do if there is a decimal in python json .dumps
What to do if No Python documentation found for ... appears in pydoc
[Python] What to do when an error related to SSL authentication is returned
What to do if you can't install with pip in babun environment
Notify using Notification Center when the execution environment is macOS in Python
What is the fastest way to create a reverse dictionary in python?
[OSX] [pyenv] What to do when an SSL error occurs in pip
What to do when psycopg2 throws an error when pipenv lock under Pipenv environment
What to do if you get a "Wrong Python Platform" warning when using Python with the NetBeans IDE
How to write what to do when an application is first displayed in Qt for Python with Designer
What to do in my case when pyenv install is not possible after upgrading to macOS Big Sur
[Python] What to do if you get a ModuleNotFoundError when importing pandas using Jupyter Notebook in Anaconda