简体   繁体   中英

How to clone an existing environment to the base environment in anaconda

I have some enviornments for anaconda (consider A, B, C). I would like to have the A environment as the base or root. 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 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM