Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get unstuck from CondaUpgradeError "A newer version of conda is required."?

Tags:

python

conda

I attempted to downgrade my conda version. With conda at version 4.6.2, I ran conda install conda=4.5.12. I then went to run other conda commands, but was met with the following error:

CondaUpgradeError: This environment has previously been operated on by a conda version that's newer
than the conda currently being used. A newer version of conda is required.
  target environment location: /home/selah/anaconda3
  current conda version: 4.5.12
  minimum conda version: 4.6

I am now stuck and unable to successfully run any conda commands. How can I get conda back in working order again?

like image 706
Selah Avatar asked Feb 05 '19 20:02

Selah


People also ask

How do I get rid of conda update?

If you want to revert to a previous revision you can simply run conda install --revision N (where N is the revision number).

How do I abort a conda install?

Press CTRL-C to abort Error Just create an env and activate that env and then do the install and your error will be solved. Here is commandline. To create env Use this command: conda create –name myenv Then do Activate env: conda activate myenv Now, Your error must be solved.


1 Answers

I really struggled with this issue. All the solutions here did not work for me. This is what works for me:

  • Find the /conda-meta/history file in the root.
  • Delete or rename it,
  • Then conda update conda.
like image 108
Nwoye CID Avatar answered Oct 13 '22 05:10

Nwoye CID