且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在克隆的conda环境中安装tensorflow会破坏从其克隆的conda环境

更新时间: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...

推荐文章