0

I am using ubuntu 18 with anaconda for python 3.6 and trying to update packages, when I try to do so using

conda update --all 

I am getting this error

conda: error: argument command: invalid choice: '/home/user/anaconda3/bin/conda'

I tried so solve it like explained in this github issue

using

$ conda update anaconda-navigator
$ conda update navigator-updater

But getting the same error. I tried adding -c conda-forge to all the commands And tried using conda update anaconda conda upgrade anaconda

and getting the same error all the time.

Here is my github issue on this

Thanks!

update: even when trying to use this to install anaconda-clean and removing anaconda, I am getting the same error when trying to install conda-clean that should help me remove anaconda from my machine

thebeancounter
  • 4,261
  • 8
  • 61
  • 109

2 Answers2

1

I had the same issue, just run

conda init

Saved me after one whole hour of troubleshooting. Turns out my C:\Users\**\miniconda3\Scripts\activate and C:\Users\**\miniconda3\Scripts\deactivate weren't updated.

Tzane
  • 2,752
  • 1
  • 10
  • 21
0

UPDATED ANSWER:

For Linux users I actually found that deleting all the lines added by conda in the .bashrc other than export PATH="/home/<user>/anaconda3/bin:$PATH" to be the best solution for this.

PREVIOUS ANSWER:

Not sure it's a fix for everyone, but I got around this by running /home/<user>/anaconda3/bin/conda install anaconda-clean (or wherever your conda file is stored), and from the packages this installed, the problem magically disappeared.

If that doesn't work, try doing a 'full' uninstall of anaconda (https://docs.anaconda.com/anaconda/install/uninstall/), reinstall it, then try doing what I suggested above.

KamKam
  • 546
  • 6
  • 14