查看 conda 交易的历史记录?

2022-01-10 00:00:00 python conda anaconda

问题描述

有没有办法查看过去的 conda 交易?例如,我在当前环境中所做的所有 conda install 操作的历史记录会很棒.

Is there a way of viewing past conda transactions? For instance, a history of all conda install actions I did in the current environment would be great.

谢谢


解决方案

有一个--revisions |-r 标志.

conda list --revisions

查看 conda list --help 了解更多信息.

Check the conda list --help for more info.

如果您想要准确的历史记录,每个 env 中都有一个 conda-meta/history 日志.例如,您可以提取在 env 中执行的每个命令,加上时间戳,使用

If you'd like an exact history, there is a conda-meta/history log in every env. You could, for example, pull out every command ever executed in an env, plus a timestamp, using

grep -B1 "^# cmd" my_env/conda-meta/history

相关文章