最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin4浏览0评论

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.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论