当我克隆一个 Conda 环境时
conda create --name thenewenv --clone theorigenv
我注意到 theorigenv
的修订历史丢失了
conda activate thenewenv
conda list -r
如何克隆 Conda 环境并保留原始环境的修订历史记录?
最佳答案
看来从原环境复制conda-meta/history
文件会保留历史
cp envs/theorigenv/conda-meta/history envs/thenewenv/conda-meta/history
它甚至似乎可以恢复到早期版本,例如,
conda install -n thenewenv --revision <n>
关于conda - 克隆 Conda 环境时如何保留修订历史记录?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66179186/