Launch Anconda3 From Backup
Tried running Anaconda back up on new computer from bash but it did not work. So I downloaded Anaconda3 again. I have a backup from my stolen computer. I can see anaconda3 folder a
Solution 1:
One should be able to activate the environments by using the prefix (path):
conda activate /path/to/the/backup/anaconda3/envs/foo
One way to possibly recreate them on the new system would be through cloning. For example,
conda create --clone /path/to/the/backup/anaconda3/envs/foo -n foo
Or you can do as suggested and dump YAMLs:
## use the `-p` (prefix) flag to specify by path
conda envexport -p /path/to/the/backup/anaconda3/envs/foo > foo.yaml
Alternatively, if the backup is going to be permanently mounted, the location could be added to envs_dirs
, and this should re-enable referring to them by name:
## use `--append` so new environments are not created there
conda config --append envs_dirs /path/to/the/backup/anaconda3/envs
In practice, however, this may have issues resolving dynamically-linked libraries that used absolute paths. The cloning strategy might be better.
Post a Comment for "Launch Anconda3 From Backup"