# Problem Updating Conda/Anaconda

**URL:** <https://forum.anaconda.com/t/problem-updating-conda-anaconda/62050>\
**Category:** Anaconda & Miniconda\
**Created:** [September 25, 2023, 12:35am UTC](https://forum.anaconda.com/t/problem-updating-conda-anaconda/62050 "2023-09-25T00:35:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juniper\_Jean](https://avatars.discourse-cdn.com/v4/letter/j/80bc00/32.png) [@Juniper\_Jean](https://forum.anaconda.com/u/Juniper_Jean)\
**Post date:** [September 25, 2023, 12:35am UTC](https://forum.anaconda.com/t/problem-updating-conda-anaconda/62050/1 "2023-09-25T00:35:54Z")

</div>

Hello,

I’m using Conda/Anaconda on Mac (latest OS) with the command line (zsh). Apologies, I’m fairly new to it all. I’m trying to keep everything up to date. What’d be the commands to do that?

This is what I found and understand:  
Conda is the package manager; Anaconda is the distribution/repository of packages.

```auto
conda update anaconda # Updates Anaconda distrib itself & package manager.
conda update --all # Updates all packages in current active env; doesn't update Anaconda distribution.

```

As I understand it, `conda update conda` updates the Conda package manager, but is usually not required, as `conda update anaconda` typically updates both the Anaconda distribution and Conda package manager. Is this all correct so far?

My problem:  
Since I installed Conda/Anaconda, I’ve had no problem running the following weekly to keep everything up to date:

```auto
conda update anaconda
conda update --all

```

But, today, I got this error:

```auto
cpenning@IC-HV4FFK3XL1 ~ % conda activate                
(base) cpenning@IC-HV4FFK3XL1 ~ % conda update anaconda      

PackageNotInstalledError: Package is not installed in prefix.
  prefix: /Users/cpenning/anaconda3
  package name: anaconda

```

I haven’t knowingly changed anything to cause this error. What’s the problem? I haven’t got any clarity by googling the error.

I definitely have Anaconda installed and the following runs fine:

```auto
(base) cpenning@IC-HV4FFK3XL1 ~ % conda --version            
conda 23.7.4
(base) cpenning@IC-HV4FFK3XL1 ~ % conda update conda
Collecting package metadata (current_repodata.json): done
Solving environment: done

# All requested packages already installed.

(base) cpenning@IC-HV4FFK3XL1 ~ % conda update --all
Collecting package metadata (current_repodata.json): done
Solving environment: done

# All requested packages already installed.

```

I’d be very grateful for help, please. Thank you.

---

<div class="post-metadata">

**Author:** ![sweller](https://avatars.discourse-cdn.com/v4/letter/s/c2df01/32.png) [@sweller](https://forum.anaconda.com/u/sweller)\
**Post date:** [September 26, 2023, 9:20pm UTC](https://forum.anaconda.com/t/problem-updating-conda-anaconda/62050/2 "2023-09-26T21:20:18Z")

</div>

Hello,

‘anaconda’; is a separate package from ‘conda’.

Try this:

‘conda install anaconda’ from your conda environment - then you should be able to run:

```auto
conda update --all

```

---

<div class="post-metadata">

**Author:** ![Olivier](https://avatars.discourse-cdn.com/v4/letter/o/c2df01/32.png) [@Olivier](https://forum.anaconda.com/u/Olivier)\
**Post date:** [October 18, 2023, 9:05pm UTC](https://forum.anaconda.com/t/problem-updating-conda-anaconda/62050/3 "2023-10-18T21:05:34Z")

</div>

I’m having the same issue. I just installed the latest Anaconda distro for Mac-Intel on my iMac running macOS Sonoma. I then wanted to make sure that everything was up to date, so I typed:

`conda update conda`

followed by:

`conda update anaconda`

which rendered the following error:

```auto
PackageNotInstalledError: Package is not installed in prefix.
  prefix: /Users/odebroqueville/anaconda3
  package name: anaconda

```

I’ve barely done anything and really just wanted Python to be updated to 3.12.0 and I’m already getting an error!

I then followed the instruction above (which doesn’t explain what it does, so I’m just guessing that it overwrites the current anaconda install) and typed:

`conda install anaconda`

but when I saw that it wants to install:

```auto
The following NEW packages will be INSTALLED:

  anaconda pkgs/main/osx-64::anaconda-custom-py311_2

```

I didn’t proceed because it looks like it would install Python 3.11.2 whilst I already have Python 3.11.5!

Maybe I shouldn’t have updated conda but it’s one of the recommendations to keep conda updated!

Not sure what I should do now!

---

<div class="post-metadata">

**Author:** ![Joaquim\_Carvalho](https://avatars.discourse-cdn.com/v4/letter/j/0075a9/32.png) [@Joaquim\_Carvalho](https://forum.anaconda.com/u/Joaquim_Carvalho)\
**Post date:** [October 19, 2023, 11:14pm UTC](https://forum.anaconda.com/t/problem-updating-conda-anaconda/62050/4 "2023-10-19T23:14:31Z")

</div>

Hello Oliver,

To install python 3.12 you would need to create a new environment with the command `conda create -n <name>` activate it with the command `conda activate <name>` and then install python 3.12.

The version of python in base environment is not upgradable, it is the one who ships with our installer and we still haven’t released an installer with python 3.12 baked. Our latest version of installer is python 3.11.5 if I’m not mistaken.

So for you to use python 3.12 you do need to use it in a custom environment and not in the **base** enviroment. Also, it is best practice to leave **base** env untouched and just create as many custom environments you want.

Hope this helps

---

<div class="post-metadata">

**Author:** ![Olivier](https://avatars.discourse-cdn.com/v4/letter/o/c2df01/32.png) [@Olivier](https://forum.anaconda.com/u/Olivier)\
**Post date:** [October 21, 2023, 6:59am UTC](https://forum.anaconda.com/t/problem-updating-conda-anaconda/62050/5 "2023-10-21T06:59:53Z")

</div>

Hello Joaquim,

Thank you for your answer. Just wondering…

Are conda and anaconda installed in the base environment only, or can they be updated in a specific environment? I understand that the following lines update conda and anaconda in the base environment, but how would you update them in another env?

```auto
conda update conda

conda update anaconda

```

---

<div class="post-metadata">

**Author:** ![rommelsharma](https://dub1.discourse-cdn.com/anaconda/user_avatar/forum.anaconda.com/rommelsharma/32/4551_2.png) [@rommelsharma](https://forum.anaconda.com/u/rommelsharma)\
**Post date:** [April 28, 2024, 3:01am UTC](https://forum.anaconda.com/t/problem-updating-conda-anaconda/62050/6 "2024-04-28T03:01:50Z")

</div>

thanks, this worked for me and resolved the same issue.
