更新时间:2023-09-16 13:14:10
I just got the following from continuum;
"To keep this from happening, you'll have to use the --copy
flag with your clone operation. Core to conda's design is extensive use of hard links. This exact issue is one of the biggest pitfalls."
因此,如果我在第一次克隆环境时会执行以下操作,则可以避免破坏旧环境:
So if I would have done the following when I first cloned the environment, I could have avoided corrupting the old one:
conda create --name tflow --copy --clone carnd-term1-gpu
选项--copy Install all packages using copies instead of hard- or soft-link‐ing
将阻止pip覆盖文件.
The option --copy Install all packages using copies instead of hard- or soft-link‐ing
will prevent pip from being able to overwrite files.
Some ongoing discussion about this and how it might get addressed in the future is here: conda pip breaks
我唯一要恢复的选项是重新安装每个损坏的软件包.在使用conda的点子时要当心...
The only option I have for recovering is to reinstall each damaged package. Beware when using pip with conda...