Carol
Carol

Reputation: 13

Recovering removed packages in anaconda

I wanted to remove a specific package, and mistakenly used conda remove [package-name]. Now, it seems that some of my packages have been removed. Also, I am not able to launch (even install Spyder editor). I wanted to ask if there is a way for recovering everything that has been deleted? I tried the following:

conda update spyder
spyder --reset

Also, I tried to install the spyder from Anaconda user-interface. However, I get error.

UPDATE: I tried conda install --revision 10 to get back to the previous version, but it says that the following packages are missing:

Error Message

Upvotes: 1

Views: 1023

Answers (1)

merv
merv

Reputation: 76750

Conda tracks "revisions" of all environments. Check them with

conda list --revisions

You'll see numbers there and can rollback to the i-th one with:

conda install --revision i

Given the error reported, you may need to add the conda-forge channel:

conda install -c conda-forge --revision 10

Or, consider adding Conda Forge to your configuration:

conda config --add channels conda-forge
conda install --revision 10

Upvotes: 2

Related Questions