Search code examples
memoryinstallationanacondacondareinstall

Does installing Anaconda on D drive save conda envs on D drive? Or are they still stored in C drive?


I have a lot of conda envs in my C:\Users\username\.conda\envs directory. I have been facing a lot of memory issues due to this. I was planing on doing a complete reinstall of Anaconda in my D drive. But I wanted to confirm that this would actually create envs in my D drive and not in my C drive.

Also, if it does create envs in D then does copy-pasting the environment folders from C:\Users\username\.conda\envs into the newly created envs successfully restore my conda envs?


Solution

  • From Anaconda docs: Moving Anaconda from one directory to another:

    Anaconda environment management requires known paths, and Anaconda must know the exact path where it is installed at installation time.

    If you simply copy the Anaconda files to a new directory, Anaconda will not work.

    To move Anaconda from one directory to another:

    OPTIONAL: Save your environments using the conda managing environments instructions.

    1. Uninstall Anaconda.
    2. Go to the new directory and install it there following the Anaconda installation instructions.

    OPTIONAL: Restore your environments using the conda managing environments instructions.