列出软件包的已安装文件? [英] List installed files of a package?
问题描述
我已经完成作业:搜索,尝试并阅读了conda文档。但是,我找不到这个看似普通而又简单的任务的答案:列出属于已安装软件包的文件。我该怎么做?
I've done my homework: searched, tried and read conda documentation. However, I could not find the answer to this seeming common and simple task: List files that belong to an installed package. How do I do that?
我的conda版本: conda 4.3.30
My conda version: conda 4.3.30
我看过列表,信息,搜索和打包
子命令。
我的用例是:
-
当软件包 A安装了另一个软件包 B作为其依赖项时。但是B有一个错误,或者安装因某种原因被破坏了,我想检查B安装了哪些文件。
When a package 'A' installed another package 'B' as its dependency. But B has a bug, or the installation somehow broken, I want to check which files B installed.
扩展使用:当A的命令调用某些命令时 b
的B,但我不知道B的确切名称。基于 b
的反向搜索找出B,让我阅读更多有关它的信息。
An extended use: when commands of A calls some command b
of B, but I don't know the exact name of B. A 'reverse' search based on b
to find out B and lets me read more about it.
推荐答案
假设您已激活相关的anaconda环境,则可以查看文件 $ {CONDA_PREFIX} / conda-meta /< package-name-and-version>-< hash> .json
并查找文件
元素。
Assuming you have activated the relevant anaconda environment, you can look at the file ${CONDA_PREFIX}/conda-meta/<package-name-and-version>-<hash>.json
and look for the files
element.
(这与Linux上的Miniconda兼容)
(this works with Miniconda on Linux)
这篇关于列出软件包的已安装文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!