Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix : Prefix "100" in front of all Anaconda packages

There is a prefix of "100" in front of all my python packages in anaconda navigator. I believe this is making it difficult for applications to use these libraries. For example, I cannot open Spyder.

Packages will be listed as "100 numpy" rather than simply "numpy"

I was in the middle of creating a virtual environment seperate from the root folder but I was doing a few install / uninstall of different packages using both Navigator and Anaconda Prompt. Suddenly just about everything with my python installation started having problems. After closing Spyder I have not been able to reopen it. I tried spyder --reset which did not work. I've tried several complete reinstalls of Anaconda and each time my root installation (as well as any other venvs I create) have a prefix of 100 in front of the package name.

I would expect the packages to read "numpy" rather than "100 numpy" etc.

like image 542
RustyBagels Avatar asked Oct 09 '19 20:10

RustyBagels


People also ask

How do I clear an Anaconda package?

We can try going into the 'pkgs' directory and manually clean them up. Or, we can go the easy way, by using the 'conda clean' command. This will clean the index cache, lock files, tarballs, unused cache packages, and the source cache. Based on your usage, this would clean up from a couple of GBs to maybe 10+GB.

How do I install multiple packages in Anaconda prompt?

The recommended way to install multiple packages is to create a . yml file and feed conda this. You can specify the version number for each package as well. To specify different channel for each package in this environment.


1 Answers

I have also experienced this issue. For me, this occurred after running conda update --all in the anaconda terminal. I was able to fix this by rolling back my conda version to the version prior to my update that broke it.

To do this, go to anaconda prompt and type in conda list --revisions to find the revision number prior to whichever update broke anaconda. They you just type in conda install --revision #, replacing "#" with the revision number.

like image 67
Greg Miller Avatar answered Oct 03 '22 11:10

Greg Miller