1

I want conda create to create a new environment in my current directory by default.

I understand that I can do this with the --prefix command, but I want this to be the default behavior. Can I specify the conda prefix to ./ in .condarc?

Any other suggestions?

Thanks

Jeff Tilton
  • 1,256
  • 1
  • 14
  • 28

1 Answers1

0

Use the CONDA_ENVS_PATH environment variable and set/remove the working directory to this every time you change directory.

You can wrap cd to do this. On Windows I would do the equivalent using powershell.

Alternatively you can simply alias the conda create command with the additional --prefix argument.

gavxn
  • 129
  • 2
  • 11