How to solve Anaconda and Conda update NoBaseEnvironmentError? - anaconda

Anaconda's current version is 1.8.7. Version 1.9.7 is now available but I cannot update it due to this error:
NoBaseEnvironmentError.
For Conda, current is 4.6.1 and error is:
NoBaseEnvironmentError: This conda installation has no default base environment.
I could not find any references online. Looking forward to help on this one!

This does not work for me...
(py3) mac-pro : puiseux$ conda activate base
(base) mac-pro : puiseux$ conda update -n base -c defaults conda
NoBaseEnvironmentError: This conda installation has no default base environment...

run the command:
conda activate base
you will get it

Related

library issue related to conda environment not active

When I try to activate my conda environment. I receive the following error:
conda create --name env_test python=3.9.7
conda activate env_test
source $IDPROOT/bin/activate
Could not find conda environment: libigdrcl.so
I am using conda version 22.11.1
Any suggestions on how to resolve ?

Conda env corrupted

Checked the conda environment using the below command:
> conda info
ERROR: The install method you used for conda--probably either `pip install conda`
or `easy_install conda`--is not compatible with using conda as an application.
If your intention is to install conda as a standalone application, currently
supported install methods include the Anaconda installer and the miniconda
installer. You can download the miniconda installer from
https://conda.io/miniconda.html.
If you had a working version of a conda environment before this error started to occur, you can revert back to that working environment using this command:
conda list --revision
and
conda install --revision [n]
Otherwise, you can try to [re]install conda from the miniconda install web page:

conda update conda fails: nothing happens except a useless message

Any attempt to upgrade conda gives:
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 4.5.11
latest version: 4.7.12
Please update conda by running
$ conda update -n base -c defaults conda
without any other effect (and finally conda is never updated).
It turned out that one package (lmfit, I don't know why) is in conflict with 4.7.12 while no message/info is given. To get a piece of info, I asked explicitly to install 4.7.12:
conda install conda=4.7.12
then I get:
UnsatisfiableError: The following specifications were found to be in conflict:
- conda=4.7.12
- lmfit
Use "conda info <package>" to see the dependencies for each package.
when I try conda info lmfit, nothing happens...

Unable to downgrade conda

I have been having issues after updating conda to 4.6.9 and tried to downgrade to 4.6.8 by running
conda install conda=4.6.8 within my preferred conda env.
When I check the version via conda --version, however, I notice that the version is still 4.6.9.
Is there something else I need to do to get downgrade conda?
Running this on Windows.
The solution was to downgrade conda while in base environment and not my preferred environment.

`conda update --all` not updating Spyder

I just installed Anaconda on a Windows 10 machine and the first thing I did thereafter was go into the Anaconda Prompt and run conda udpate conda and then conda update --all. As expected, it updated a lot of stuff. When I then ran Spyder, however, I got a pop-up saying that a new version of Spyder was available.
What? I just updated everything. Checking conda list I see that sypder 3.2.4 is indeed installed, so I do the following:
(base) C:\Users\Mark>conda update --all
Solving environment: done
All requested packages already installed.
(base) C:\Users\Mark>conda update spyder
Solving environment: done
Package Plan
environment location: C:\Users\Mark\Anaconda3
added / updated specs:
- spyder
The following packages will be downloaded:
package | build
---------------------------|-----------------
spyder-3.2.6 | py36_0 2.6 MB
The following packages will be UPDATED:
spyder: 3.2.4-py36h8845eaa_0 --> 3.2.6-py36_0
Proceed ([y]/n)?
Why is conda update -all not finding and updating my installed version of Spyder?
Have you tried just updating spyder?
conda update spyder
I had some similar behavior (on Linux) with conda, there it helped to be more specific:
conda update spyder=3.2.6
"NOTE: Conda updates to the highest version in its series, so Python 2.7 updates to the highest available in the 2.x series and 3.6 updates to the highest available in the 3.x series."
documentation conda
Try:
conda update -n base conda
Here, base is my current environment

Resources