bashfuloctopus
bashfuloctopus

Reputation: 388

conda update -n base -c defaults conda won't update to 4.6.x

Hopefully the title says most of it. When I use conda, it informs me that there's a newer version; however, when I go to install conda, it refuses to install anything beyond 4.5.11. This problem is occurring on my laptop (running OS X Mojave). The Ubuntu virtual machine I'm running does not have this problem. It's been 9 days and no one has replied to my conda Github issue, so I was hoping that someone here might be able to help out. That link contains relevant configuration details that may offer some clues.

$ conda update -n base -c defaults conda
Solving environment: done


==> WARNING: A newer version of conda exists. <==
  current version: 4.5.11
  latest version: 4.6.4

Please update conda by running

    $ conda update -n base -c defaults conda



# All requested packages already installed.

Upvotes: 7

Views: 9080

Answers (6)

philipplk
philipplk

Reputation: 1

Following the procedure outlined in this GitHub issue did the job for me.

tldr:

conda update -n base conda -c anaconda

Upvotes: 0

慕容执
慕容执

Reputation: 41

I think you could try the command: conda install conda=4.6.4, it may be helpful.

Upvotes: 2

GreenMatt
GreenMatt

Reputation: 18580

I encountered a similar problem, except that conda was reporting that I needed to update from 4.6.x to 4.7.x and that I needed to update by running:

conda update -n base -c defaults conda

None of the other answers (as of the time I'm typing this) did the job immediately:

  • My system only has Python 3, so a 2/3 issue wasn't the problem.
  • Checking on torch and torchvision, I found that they were not part of my Anaconda installation, so that was not the problem either.
  • Just trying to update Python didn't resolve the issue, as attempts to update conda still did not do anything.

On something of a whim, I ran

conda update anaconda

That did a a lot of updates (far more than should be listed here), which I then followed with:

conda update python

Again, there were many updates done; looking through the list, it was in this step that the conda update actually got done. Nonetheless, I still ran:

conda update conda

A few more updates were done at this point and these turned out to be the last ones. However, for good measure I ran:

conda update -n base -c defaults conda

Upvotes: 4

Qinsi
Qinsi

Reputation: 820

Loop in conda update problem, and finally I typed which python and found python2.7.

Maybe it's python version problem, you just need to update the python to python3.

Upvotes: -1

bashfuloctopus
bashfuloctopus

Reputation: 388

This issue was due to a conflict with a PyTorch installation in base. I removed torch and torchvision from the base env and this fixed the dependency snag.

Upvotes: 0

Gaudi
Gaudi

Reputation: 21

To update conda to the most recent version you have to update python:

(base) self@home:~$ conda update python

This updates many packages including:

conda: 4.5.11-py35_0 --> 4.6.11-py36_0

Upvotes: 2

Related Questions