[Solved] Conda Upgrade Error: PackageNotInstalledError: Package is not installed in prefix.

Use CONDA update CONDA to update CONDA. If you encounter a packagenotinstallederror problem, record it here!

Problem description

conda update –prefix /Users/omeiko/opt/miniconda3 anaconda
PackageNotInstalledError: Package is not installed in prefix.
prefix: /Users/omeiko/opt/miniconda3
package name: anaconda

When you run CONDA update, you will be prompted whether you want to run CONDA update — prefix/users/omeiko/opt/minicanda3 anaconda. After running, the above error prompt will be displayed
the reason for the problem is that you installed miniconda instead of anaconda.

 

Solution:

Method 1
execute CONDA install anaconda, install anaconda, and then run again.

Method 2
execute CONDA update — prefix/users/omeiko/opt/miniconda3 CONDA. There is no need to update anaconda
or execute CONDA update — name base CONDA (I solved it myself with this command) to update the base command

Read More: