Migrating Anaconda Root Environment to a New Machine

I recently got a new OS X computer that was released from an earlier version of OS X and would like to clone my root environment onto my new machine. I exported my root environment to my old machine using

conda env export --name root -f root.yml

Now I would like to “clone” this root environment on my new machine, but I can’t use

conda env create --name root -f root.yml

because I get an error CondaValueError: Value error: prefix already exists: /Users/user/anaconda. It makes sense; he does not want to overwrite the root environment in /Users/user/anaconda, but is there a way to tell anaconda to download and install all the packages in root.ymlthe root environment?

+4
source share
1 answer

. , conda OS X Linux-, ​​. OS X:

$conda list -e > root-spec.txt

root-spec.txt , :

conda=4.1.12=py27_0
conda-env=2.5.2=py27_0

( conda )

root-spec.txt :

conda install --file root-spec.txt
+2

Source: https://habr.com/ru/post/1661214/


All Articles