In the past, I installed some dependencies to run different GitHub repository projects. Now I found that there are some duplicates and hope to keep only the new version and remove the old ones. Some examples appear in the following screenshot. Can anyone explain how to do it? Thank you!
In the past, I installed some dependencies to run different GitHub repository projects. Now I found that there are some duplicates and hope to keep only the new version and remove the old ones. Some examples appear in the following screenshot. Can anyone explain how to do it? Thank you!
Share Improve this question asked Mar 20 at 13:38 AIIAAIIA 431 silver badge5 bronze badges1 Answer
Reset to default 0Ok, it turns out that the solution is simple.
Several commands can be run in the following order:
Firstly, this command cleans package caches:
conda clean --all
Then, if some environments are no longer needed, these commands can remove them:
conda env list
conda remove --name ENV_NAME --all
Finally, this command can remove unused package files:
conda clean --packages
After running all these commands, unneeded packages will be removed.