Skip to content

Instantly share code, notes, and snippets.

@mattirish
Last active March 6, 2024 04:43
Show Gist options
  • Star 19 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattirish/4c04c0a64654760c0c3ff040b07ff181 to your computer and use it in GitHub Desktop.
Save mattirish/4c04c0a64654760c0c3ff040b07ff181 to your computer and use it in GitHub Desktop.
Easily move a conda environment to a different drive on Windows without touching with conda
@DeadBranches
Copy link

DeadBranches commented Feb 10, 2023

Thanks for laying this out.

It's interesting that if I use the package manager from the conda prompt (e.g. conda install git) the symlink is replaced by a folder and any package install attempt just fails.

@JulienGadanho
Copy link

mklink /D "D:<your username>\conda" "C:\Users<your username>\AppData\Local\conda\conda" for Windows

@jmyeary
Copy link

jmyeary commented Oct 7, 2023

this worked, thank you so much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment