linux - How to removeuninstall old version of PyTorch, mkl, libcublas, etc.? - Stack Overflow

admin2025-04-12  1

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 badges
Add a comment  | 

1 Answer 1

Reset to default 0

Ok, 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.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1744405957a245540.html

最新回复(0)