home | list info | list archive | date index | thread index

Re: miniconda3 start and stop scripts

Nash JC - NCF via linux wrote on 2026-05-13 15:04:

  eval "$__conda_setup"

I get things going and see the command prompt with prefix " (base)  "

The command '

conda deactivate

returns to normal prompt.
However, putting these in scripts doesn't work. I suspect calling scripts is not getting right info to the virtual environment.

This hints at the difference between sourcing and executing a script - shared environment is preserved when sourcing.

I suspect eval is doing something in a subshell?


What happens if you merely source the scripts instead of eval-ing them?