[英]How to clone an existing environment to the base environment in anaconda
I have some enviornments for anaconda (consider A, B, C).我有一些 anaconda 的环境(考虑 A、B、C)。 I would like to have the A environment as the base or root.
我想将 A 环境作为基础或根。 How can I achieve this?
我怎样才能做到这一点?
Most questions are about cloning one environment to another but I would like to clone an environment to the base.大多数问题都是关于将一个环境克隆到另一个环境,但我想将一个环境克隆到基础。
I tried:我试过:
conda create --name base --clone tf2
But I got:但我得到了:
CondaValueError: The target prefix is the base prefix. Aborting.
I solved this by changing the order.我通过改变顺序解决了这个问题。 You can try:
你可以试试:
conda create --clone tf2 -n base
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.