conda clean会从哪里移除包装? [英] Where does conda clean remove packages from?

查看:1078
本文介绍了conda clean会从哪里移除包装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

conda文档指定:

The conda documentation specifies:


conda clean [-h] [-y] [--dry-run] [- json] [--debug] [--verbose] [-q]
[-a] [-i] [-l] [-t] [-p] [-s]

conda clean [-h] [-y] [--dry-run] [--json] [--debug] [--verbose] [-q] [-a] [-i] [-l] [-t] [-p] [-s]

删除未使用的软件包和缓存。

Remove unused packages and caches.

示例:

conda clean --tarballs

conda清洁文档)

因此删除未使用软件包是很容易的。

So it is supose to remove unused packages.


  • 来自conda(基础)?

  • 来自活动环境?

推荐答案

它无论您碰巧安装了conda,都从 pkgs / 目录下删除未使用的软件包。 未使用的程序包是在任何环境中都不会使用的程序包。所有conda软件包都存储在 pkgs / 目录下,然后(如果可能)硬链接到环境中。

It removes unused packages from under the pkgs/ directory wherever you happen to have conda installed. An "unused" package is one that's not used in any environment. All conda packages are stored under the pkgs/ directory and then hard-linked (if possible) into the environments.

顺便说一句, conda clean 将打印出软件包实际所在的位置:

As an aside, conda clean will print out the location of where the packages are actually located:

$ conda clean -all
Cache location: /data/processing/ryan/miniconda/pkgs
Will remove the following tarballs:

/data/processing/ryan/miniconda/pkgs
------------------------------------
filelock-3.0.10-py_0.tar.bz2                   9 KB

编辑13.3.2020 rvf 指出 -all 选项具有在conda 4.8.2中已更改为 -a -全部

Edit 13.3.2020 rvf pointed out that the -all option has been changed to -a or --all in conda 4.8.2.

这篇关于conda clean会从哪里移除包装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆